Om
1.0.0
A universal framework for multimedia simulation
|
A class that implements. More...
#include <omPhysicsCharacterController.h>
Public Member Functions | |
CharacterController () | |
Create a default physics object centered at the origin with no shape. More... | |
const Vector3f & | getPosition () const |
Return the position of this character in world space. More... | |
void | setPosition (const Vector3f &newPosition) |
Set the position of this character in world space. More... | |
const Matrix3f & | getOrientation () const |
Return a reference to this character's 3x3 orthonormal rotation matrix. More... | |
void | setOrientation (const Matrix3f &newOrientation) |
Set this character's 3x3 orthonormal rotation matrix. More... | |
const Transform3f & | getTransform () const |
Return a const reference to this character's transformation. More... | |
void | setTransform (const Transform3f &newTransform) |
Set this character's transformation. More... | |
const Vector2f & | getHeading () const |
Return a const reference to this character's current heading vector. More... | |
void | setHeading (const Vector2f &newHeading) |
Set this character's heading vector. More... | |
const AABB2f & | getMaxVelocity () const |
Return a const reference to this character's maximum velocity in each local direction. More... | |
void | setMaxVelocity (const AABB2f &newMaxVelocity) |
Set this character's maximum velocity in each local direction. More... | |
const AABB2f & | getMaxForce () const |
Return a const reference to this character's maximum force in each local direction. More... | |
void | setMaxForce (const AABB2f &newMaxForce) |
Set this character's maximum force in each local direction. More... | |
virtual Bool | setContext (PhysicsContext *newContext) |
Set a pointer to the physics context this context object should use to do simulation. More... | |
virtual Bool | addSceneObjects (PhysicsSceneID sceneID) |
Add internal context objects to the scene with the specified ID. More... | |
Public Member Functions inherited from om::physics::objects::PhysicsObject | |
const PhysicsObjectType & | getType () const |
Return an object representing the type of this object. More... | |
virtual Bool | upload () |
Upload this object's current representation to the simulation. More... | |
virtual Bool | download () |
Download the object's simulation representation to the object's local state. More... | |
Public Member Functions inherited from om::physics::context::PhysicsSceneObject | |
virtual Bool | addSceneObjects (PhysicsSceneID sceneID) |
Add internal context objects to the scene with the specified ID. More... | |
virtual Bool | removeSceneObjects (PhysicsSceneID sceneID) |
Remove internal context objects from the scene with the specified ID. More... | |
Public Member Functions inherited from om::physics::context::PhysicsContextObject | |
virtual | ~PhysicsContextObject () |
Destory this physics context object. More... | |
PhysicsContext * | getContext () const |
Return a pointer to the physics context this context object is using to do simulation. More... | |
Bool | clearContext () |
Clear the previous context from this object. More... | |
Static Public Attributes | |
static const PhysicsObjectType | TYPE |
The object type for a character controller. More... | |
Static Public Attributes inherited from om::physics::objects::PhysicsObject | |
static const ResourceType | RESOURCE_TYPE |
The resource type for a physics object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from om::physics::objects::PhysicsObject | |
PhysicsObject (const PhysicsObjectType *newType) | |
Create a physics object that has the specified type. More... | |
Protected Member Functions inherited from om::physics::context::PhysicsContextObject | |
PhysicsContextObject () | |
Create a new physics context object that doesn't have an associated physics context. More... | |
PhysicsContextObject (PhysicsContext *newContext) | |
Create a new physics context object that uses the specified context for simulation. More... | |
Protected Attributes inherited from om::physics::context::PhysicsContextObject | |
PhysicsContext * | context |
A pointer to the physics context this object is using. More... | |
A class that implements.
om::physics::objects::CharacterController::CharacterController | ( | ) |
Create a default physics object centered at the origin with no shape.
|
inline |
Return the position of this character in world space.
|
inline |
Set the position of this character in world space.
|
inline |
Return a reference to this character's 3x3 orthonormal rotation matrix.
|
inline |
Set this character's 3x3 orthonormal rotation matrix.
|
inline |
Return a const reference to this character's transformation.
|
inline |
Set this character's transformation.
|
inline |
Return a const reference to this character's current heading vector.
The length of the vector indicates the fraction of the maximum velocity the character controller should move at.
|
inline |
Set this character's heading vector.
The length of the vector indicates the fraction of the maximum velocity the character controller should move at.
|
inline |
Return a const reference to this character's maximum velocity in each local direction.
|
inline |
Set this character's maximum velocity in each local direction.
|
inline |
Return a const reference to this character's maximum force in each local direction.
|
inline |
Set this character's maximum force in each local direction.
|
virtual |
Set a pointer to the physics context this context object should use to do simulation.
Reimplemented from om::physics::context::PhysicsContextObject.
|
virtual |
Add internal context objects to the scene with the specified ID.
|
static |
The object type for a character controller.