Game Development Community

Collision (touching) detection

by PeterB · in Torque Game Builder · 08/25/2005 (1:58 pm) · 2 replies

I want to check to see if a given sprite is touching any other sprites- when they are not moving. Getting info on sprites that are colliding or passing through each other is nice and easy.
But on command I want to ask, 'Who is sitting on top of me, or is butted up against me'?

Is this still collision detection?


*Edit. bad question on my part. With the correct combination of setCollisionActive, setCollisionPhysics, and setCollisionCallback, detecting if two still sprites are touching is quite simple.

#1
08/26/2005 (5:12 pm)
Well, butted against you might still be hard, if they are not actually "touching"
#2
08/26/2005 (5:25 pm)
You can also use the various "pick" commands (like pickRect) to get a list of all scene objects that intersect with the given region.