About Store Forum Documentation Contact
Donations:
227$/mo



Post Reply 
implementing trigger system
Author Message
candam Offline
Member

Post: #1
implementing trigger system
Hello Esenthel community

smile
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 smile
11-02-2013 09:07 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
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
Find all posts by this user Quote this message in a reply
candam Offline
Member

Post: #4
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

smile
11-04-2013 11:00 AM
Find all posts by this user Quote this message in a reply
Post Reply