class
APhysicsObjectA Physics Object that is used for all collision detection and responses.
Contents
Constructors, destructors, conversion operators
- APhysicsObject()
- Constructor. Applies default values.
-
APhysicsObject(const APhysicsMaterial& material,
const bool& enablePhysics = false,
ACollider* collider = NULL,
GraphicComponents::
RSprite* sprite = NULL) - Generates a physics object for linking within a game object.
- ~APhysicsObject()
- Destructor.
Public variables
- APhysicsMaterial m_PhysicsMaterial
- Physics Material defining a physics object.
- ACollider* m_Collider
- A collider in charge of handling collision algorithms.
- bool m_EnablePhysics
- Whether physics should be enabled for a game object.
-
GraphicComponents::
RSprite* m_Sprite - The sprite linked to this physicsobject.
Function documentation
Rubeus:: Awerere:: APhysicsObject:: APhysicsObject(const APhysicsMaterial& material,
const bool& enablePhysics = false,
ACollider* collider = NULL,
GraphicComponents:: RSprite* sprite = NULL)
Generates a physics object for linking within a game object.
Parameters | |
---|---|
material | Material to be used by the physics object. |
enablePhysics | Whether physics should be enabled for the game object. Default is false |
collider | Collider object to be used. Default is NULL |
sprite | Sprite object associated to be used. Default is NULL |