candam
Member
|
implementing trigger system
Hello Esenthel community
how are you guys ?
I'm trying to implement a simple trigger system based on this function
PhysicsClass& reportTrigger(void (*ReportTrigger)(ActorInfo &trigger, ActorInfo &actor));
when the player trigger the actor it calls the pointer function
the trigger is working fine but I want to specify 2 actions
one for entering the trigger and this is working good and the other when leaving the trigger
how I can get if the player has left the trigger
finally I wish if you tell me if there is a better way to implement trigger system
simple
thank you in advance for your time
|
|
11-02-2013 09:07 PM |
|
Esenthel
Administrator
|
RE: implementing trigger system
Hi,
I'll check if PhysX provides this internally, if yes then I'll add support for it!
|
|
11-04-2013 12:20 AM |
|
Esenthel
Administrator
|
RE: implementing trigger system
Hi Good news!
Next release will have this change:
-Physics.triggerReport now supports information whether contact is new,lost or the same
|
|
11-04-2013 03:08 AM |
|
candam
Member
|
RE: implementing trigger system
(11-04-2013 03:08 AM)Esenthel Wrote: Hi Good news!
Next release will have this change:
-Physics.triggerReport now supports information whether contact is new,lost or the same
Thank you how fast you are
You're the best
|
|
11-04-2013 11:00 AM |
|