Gamestudio Links
Zorro Links
Newest Posts
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (VoroneTZ), 9,291 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Collision event for many Entities #422256
05/06/13 12:27
05/06/13 12:27
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline OP
Serious User
Ch40zzC0d3r  Offline OP
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Hey guys!
Today I got stuck. Im trying to code a grenade launcher so far everythign works fine. But I want to recognize if the grenade has hit something, so I read the manual and got this piece of code:
Code:
pXent_setcollisionflag ( entity1, entity2, var event)



It seems the event is only triggered when its one of the entities I insert there :|
I know this is right but how should I do this for EVERY entity I have in my level? o.0
I dont want to loop through them all.
Does someone has got an Idea?
Thanks in advance, Ch40zz.

Last edited by Ch40zzC0d3r; 05/06/13 12:27.
Re: Collision event for many Entities [Re: Ch40zzC0d3r] #422258
05/06/13 12:40
05/06/13 12:40
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
I think that it is the only way to do it in the default plugin. With physX3 plugin you can use scene queries to check if you hit something (But you still need a loop).

Re: Collision event for many Entities [Re: 3dgs_snake] #422259
05/06/13 12:44
05/06/13 12:44
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline OP
Serious User
Ch40zzC0d3r  Offline OP
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Then Im using another method, simply check for the velocity every frame and when its too slow Its gonna explode. Works better then these hitflags, sometimes it wont even explode -.-
PhysX isnt very good :|


Moderated by  HeelX, Spirit 

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