This is a behaviour of a GLScene object that descends from TGLBaseSceneObject. It allows an object to become an obstacle to an GLScene object that has dynamic DCE behaviour. For example if Quake map freeform has its behaviour as DCE Static then a dynamic DCE object (eg a camera) will bounce (or slide) off the Quake map rather than going straight through it. Refer to the DCE collision article for more information.
Important TGLDCEStatic properties:
manager:TGLDCEManager
The DCE Manager used. Dynamic and static objects that are part of the system need the same manager.
shape:TGLDCEShape
The type of static object it is. If its a freeform then collisions will be detected with the mesh eg the walls of a Quake map. For simple shapes use a bounding sphere or cube
friction:integer
This is the amount of friction on the surface of the static object so that when force is applied to a dynamic object it will slide over the surface with no friction (0 ) or will be completely stuck (100)
active:boolean
Allows the behaviour to be switched on or off so that a static object will no longer be part of the collision engine
Demo: CVS/Demos/behaviours/DCEDemo
Unit: GLDCE
Descends from TGLBehaviour.
Comments (0)
You don't have permission to comment on this page.