glscene

 

TGLDCEDynamic

Page history last edited by skinhat 4 yrs ago

This is a behaviour of a GLScene object that descends from TGLBaseSceneObject. It gives an object behaviour that allows it to collide with a static object. For example a camera colliding with a wall in Quake map. 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.

slideorbound:TDCESlideOrBounce

When the object hits a static object does it bounce off the object or slide over it.

friction:integer

This is the amount of friction on the surface of the 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)

usegravity:boolean

Whether or not the dynamic object is effected by the gravity specified in the TGLDCEManager

active:boolean

Allows the behaviour to be switched on or off so that a 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.