Game Development Community

Collision System

by GrizzLy · in Torque 3D Beginner · 03/17/2011 (9:16 am) · 1 replies

Sorry, i wonder where i can find some information/manual/example on collision system?
Stuff like information on which collision solids exist, can i use bitmasks to specify what can collide with what, how can i create events based on detected collisions..

#1
05/10/2011 (12:53 pm)
Quote:
which collision solids exist
You can collide with just about anything. Particles, sky, cloud, etc being exceptions. If it's a 3d shape then you can hit/collide with it.

Quote:
can i use bitmasks to specify what can collide with what
Simple answer, yes. Long answer requires source code access and knowledge of availabe Typemasks.

Quote:
how can i create events based on detected collisions
In the abstract this is automatically handled by the engine with fine tuning left up to the developer. You run into it you stop moving. Most (shapebase) classes have an onCollision callback setup for them that can be controlled or interacted with through script (namespace or per object basis) allowing developer/user in-game script 'events' to be activated when the collision happens.