Gorilla.Physics

Unit Gorilla.Physics.pas

Classes

Records

Enumerations

TGorillaPhysicsBodyType

enum TGorillaPhysicsBodyType = ( eStaticBody, eDynamicBody, eKinematicBody ) ;

Type of body

Remarks

A body is defined by one of these 3 kinds. static bodies - will not 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 move but will not be influenced by mass and impulses Use this type as an alternative to dynamic bodies.

TGorillaPhysicsSystem

User component for physics computation. The Gorilla physics system uses internally the Q3 Physics Engine.

Ancestors

Members

Fields

Methods

Properties

  • public Engine : TQ3Scene

    TGorillaPhysicsEngine is just a wrapper component. This property is the currently available internal physics engine. At the current development state we provide physics by the Q3 physics engine.

    read FEngine
  • published Active : Boolean

    Activate or deactivate the physics engine. You still have to execute the Step() method on every interval. Recommend is an interval of 33ms handled by a TTimer component.

    read GetActive
    write SetActive