Gorilla.Physics.Q3.Body

Unit Gorilla.Physics.Q3.Body.pas

Classes

Records

Enumerations

  • enum  TQ3BodyType  = ( eStaticBody, eDynamicBody, eKinematicBody ) ;
  • enum  TQ3BodyState  = ( eAwake, eActive, eAllowSleep, eIsland, eStatic, eDynamic, eKinematic, eLockRotAxisX, eLockRotAxisY, eLockRotAxisZ, eLockMoveAxisX, eLockMoveAxisY, eLockMoveAxisZ ) ;

Constants

    Mics. types

    • type PQ3BodyDef = pointer to TQ3BodyDef;

TQ3BodyType

enum TQ3BodyType = ( eStaticBody, eDynamicBody, eKinematicBody ) ;

Type of body (static, dynamic or kinematic)

Remarks

A body is defined by one of these 3 kinds.

Static bodies will not be move or influenced by mass and impulses. Use this type for defining a plane / floor.

Dynamic bodies will move, handle forces influenced by mass and impulses. Use this type by default for any kind of physics-engine handled instances.

Kinematic bodies will be moved, but will not be influenced by mass and impulses. Use this type as an alternative to dynamic bodies.

TQ3BodyState

enum TQ3BodyState = ( eAwake, eActive, eAllowSleep, eIsland, eStatic, eDynamic, eKinematic, eLockRotAxisX, eLockRotAxisY, eLockRotAxisZ, eLockMoveAxisX, eLockMoveAxisY, eLockMoveAxisZ ) ;

State of body

Remarks

A body can handle multiple states, like information about the body-type, if it's awake or if an axis is locked.

TQ3Body

Physics Ridid Body

Remarks

A single body instance can handle multiple colliders (boxes). So you can group similar elements and reduce cpu usage.

Ancestors

Members

Fields

Methods

Properties