Tile Collision Info
by Pete111 · in Torque Game Builder · 03/04/2005 (2:27 pm) · 5 replies
Hi - I got my little map scrolling and the player can collide with the map but now I need my player to stop moving when it hits a wall. I'm guessing I need to then find the world pos of the tile hit and compare to world pos of the player??
THANKS!
THANKS!
About the author
#2
03/04/2005 (3:06 pm)
Nevermind - it looks like the last arguements in the collision callback are world locs...
#3
ala... echo("contactXPoint=" @ %contactPoints[1]);???? this doesnt spit anything out
03/04/2005 (3:12 pm)
OK but now how do I get the x and y from the last arguemtent in the collision callback????ala... echo("contactXPoint=" @ %contactPoints[1]);???? this doesnt spit anything out
#5
03/05/2005 (4:49 pm)
Thanks!
Torque Owner Pete111