Trigger movement

netsurferj

19-08-2008 20:00:18

Hi

I created a static nx trigger, and am moving it using setposition. When the player (a body) is standing still and the trigger moves away, the onLeave callback method is not called untill the player moves.

I would like to know if there is some update method I can call on the trigger everytime I set its position?

(The trigger moves fine, and onEnter and onLeave works, if the player moves)

thanx

netsurferj

19-08-2008 20:13:29

I have tried upgrading to 2.8.3, but then I get errors when compiling NxOgre 0.9

betajaen

19-08-2008 21:12:14

Use an actor with a kinematic trigger; it just works better.


0.9 won't work with the modern PhysX versions.