gePhysicsObject

From GriffinEngine
Jump to: navigation, search

The gePhysicsObject is a part of geObject3D. A gePhysicsObject contains all the information required to implement some simple physics.

Usage

Inheritance


Reference

Fields

  •  static float3 gravity; // gravity vector (Y component should be NEGATIVE to fall down)
  •  static float ground; // ground level (relative to world origin, on the vertical/Y axis)
  •  float3 acceleration; // acceleration vector
  •  bool useGravity; // Whether to apply gravity to this object.

Constructors

  •  gePhysicsObject();

Accessors

  •  const float3* getAcceleration() const;

Methods

  •  void Update( double time_passed );
The update function makes changes to the object depending on the time.