Syntax

dbAutomaticObjectCollision(ObjectID, Radius.f, Response)

Description

This command will set the specified object to automatic collision. Automatic collision takes over the task of adjusting the object when it hits another object in the 3D scene. Objects with automatic collision use a collision sphere of the specified radius, ignoring its previous collision shape. If the Response value is set to one, the new position backtracks to the last collision free position when a hit occurs. Spheres and boxes are solid objects, and so collision can only occur when they collide together. When an object is entirely within another object, even though the geometry is not touching, the collision is still valid as the larger object would be a solid construct.

See Also

dbCalculateAutomaticCollision, dbSetGlobalCollisionOn, dbSetObjectCollisionOn