Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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