Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 6,365 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Impact event not called #220841
08/10/08 08:12
08/10/08 08:12
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Hi!
I have the following problem: My player should touch a weapon and than the event of the weapon should be called so that he picks it up. But, since I moved the origin from the feet of the player to his chest the event isn't called anymore, because now the bounding boxes doesn't touch anymore. But this is also if I use the polygon collision system.

Function of the weapon:
Code:
...
        my.polygon = on;
	my.enable_impact = on;
	my.enable_entity = on;
	my.event = weapon_pickup;
	while(my != null)
	{
		/////Rotation/////
	        c_rotate(my,vector(3*time,0,0),USE_AXIS+USE_POLYGON);
...


Player:
Code:
...
        my.polygon = on;
        while(my.skill1 > 0)
	{
               c_move(me,nullvector,player_dist,ignore_passable+glide+use_polygon);
...


Why is the bounding box still used and not the polygons?

Thanks for your help!

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Impact event not called [Re: Dark_samurai] #220953
08/11/08 03:41
08/11/08 03:41
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Dunno if this helps , but the manual suggests that only one of two colliding entities should have the polygon flag on... smile


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Impact event not called [Re: EpsiloN] #220985
08/11/08 09:16
08/11/08 09:16
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Thanks for your answer EpsiloN!

Ok I solved the problem now. It's a little bit strange but it seems that even if I use polygon precise collision the bounding boxes have to touch each other and only after that the polygons are used or something like that.
I now update the bounding box of the player so that it has correct size (it also reaches the feet now) and now it works.

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1