Game Development Community

Detecting the side of a collision

by Alexander Bierbrauer · in Torque Game Builder · 05/15/2006 (8:23 am) · 1 replies

Hi there again,

is there an easy way to get the "collision side" of a collision ??

Example:

I've got a player object and some other object. Now the player runs against this object and I wanna now from which side the play run against it.

I could check the positions of the player and the object but this seems odd for me 'cause the screen resolution ranges from -X,-Y to X,Y.

Sure, I could do it this way but is there another option ?? The onCollisions Callback gives me a normal.... could I get it this way ?? If yes ,how ?

#1
05/15/2006 (11:13 am)
No, but with the movement speed and direction of the objects

The normal only tells you in which direction the collision polygon side faced at the collision spot.