Syntax
dbAutomaticCameraCollision(CameraID, Radius.f, Response [, StandGroundMode])
Description
This command will set the specified camera to automatic collision. Automatic collision takes over the task of adjusting the camera when it hits an object in the 3D scene. Cameras with automatic collision use a collision sphere of the specified radius. 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. If the additional 'Stand Ground Mode' value is set to one, the camera cannot be pushed by other objects. The default is zero, which allows the camera to be pushed around by other objects.
See Also