[Help] How to tell if a 'player' object has touched a StaticShape or TSStatic
by Nicolai Dutka · in Torque Game Engine Advanced · 10/13/2009 (10:37 pm) · 3 replies
Ok, so I have a player object derived from a default player (player.cs). The object can be manipulated in mid-air like a telekinesis type thing... I need to run some code when said object has been set down. I can quite easily do a 'distance from terrain' check, but what if the object is set down on top of another object whether that be a TSStatic or StaticShape? In that case, my 'distance from terrain' check will never tell me the object is close enough to the terrain because the object was just set down on top of another object...
I tried using the 'onCollision' method for the player derived object, but it only gives me results when it collides with other players...
Any ideas?
I tried using the 'onCollision' method for the player derived object, but it only gives me results when it collides with other players...
Any ideas?
Associate Steve Acaster
[YorkshireRifles.com]