Game Development Community

Collision detection

by Daniel Zimmermann · in Torque X 2D · 12/12/2006 (3:27 pm) · 2 replies

Has everyone else had problems with collision detection in Torque X? I'm just trying to implement the basic scenario of having two sprites, collision enabled on both scene objects and still they don't collide. From the packaged documentation I got the idea that there's some sort of standard collision detection without the need to handle T2CollisionComponent.OnCollision manually. One of the two objects also has a MovementComponent (I'm using the StarterGame template/project). Any help much appreciated :D

#1
12/12/2006 (3:33 pm)
Solved it. You also need to select a option from the T2DPhysicsComponent ResolveCollision Enum (BounceCollision for instance). Hope it helps if you run into the same problem trying to step through the bundled documentation :D
#2
12/12/2006 (4:51 pm)
Thanks for posting the fix for your own problem. It helps us to figure out what needs responding and what doesn't.