#include <OgreRefAppOgreHead.h>
Inheritance diagram for OgreRefApp::OgreHead:
Public Member Functions | |
OgreHead (const String &name) | |
~OgreHead () | |
virtual void | setPosition (const Vector3 &vec) |
Sets the position of this object. | |
virtual void | setPosition (Real x, Real y, Real z) |
Sets the position of this object. | |
virtual void | setOrientation (const Quaternion &orientation) |
Sets the orientation of this object. | |
virtual const Vector3 & | getPosition (void) |
Gets the current position of this object. | |
virtual const Quaternion & | getOrientation (void) |
Gets the current orientation of this object. | |
virtual void | _updateFromDynamics (void) |
Updates the position of this game object from the simulation. | |
virtual bool | isCollisionEnabled (void) |
Returns whether or not this object is considered for collision. | |
virtual bool | isDynamicsEnabled (void) |
Returns whether or not this object is physically simulated. | |
virtual void | setDynamicsDisableThreshold (Real linearSq, Real angularSq, Real overTime) |
Sets the linear and angular velocity thresholds, below which the object will have it's dynamics automatically disabled for performance. | |
virtual void | setCollisionEnabled (bool enabled) |
virtual void | setDynamicsEnabled (bool enabled, bool reEnableOnInteraction=false) |
Sets whether or not this object is physically simulated at this time. | |
virtual void | setBounceParameters (Real restitutionValue, Real velocityThreshold) |
Sets the 'bounciness' of this object. | |
virtual Real | getBounceRestitutionValue (void) |
Gets the cefficient of restitution (bounciness) for this object. | |
virtual Real | getBounceVelocityThreshold (void) |
Gets the bounce velocity threshold for this object. | |
virtual void | setSoftness (Real softness) |
Sets the softness of this object, which determines how much it is allowed to penetrate other objects. | |
virtual Real | getSoftness (void) |
Gets the softness factor of this object. | |
virtual void | setFriction (Real friction) |
Sets the Coulomb frictional coefficient for this object. | |
virtual Real | getFriction (void) |
Gets the Coulomb frictional coefficient for this object. | |
virtual void | addForce (const Vector3 &direction, const Vector3 &atPosition=Vector3::ZERO) |
Adds a linear force to this object, in object space, at the position indicated. | |
virtual void | addForce (Real dir_x, Real dir_y, Real dir_z, Real pos_x=0, Real pos_y=0, Real pos_z=0) |
Adds a linear force to this object, in object space, at the position indicated. | |
virtual void | addForceWorldSpace (const Vector3 &direction, const Vector3 &atPosition=Vector3::ZERO) |
Adds a linear force to this object, in world space, at the position indicated. | |
virtual void | addForceWorldSpace (Real dir_x, Real dir_y, Real dir_z, Real pos_x, Real pos_y, Real pos_z) |
Adds a linear force to this object, in world space, at the position indicated. | |
virtual void | addTorque (const Vector3 &direction) |
Adds rotational force to this object, in object space. | |
virtual void | addTorque (Real x, Real y, Real z) |
Adds rotational force to this object, in object space. | |
virtual void | addTorqueWorldSpace (const Vector3 &direction) |
Adds rotational force to this object, in world space. | |
virtual void | addTorqueWorldSpace (Real x, Real y, Real z) |
Adds rotational force to this object, in world space. | |
virtual bool | testCollide (ApplicationObject *otherObj) |
Tests to see if there is a detailed collision between this object and the object passed in. | |
virtual bool | testCollide (SceneQuery::WorldFragment *wf) |
Tests to see if there is a detailed collision between this object and the world fragment passed in. | |
virtual void | _notifyCollided (ApplicationObject *otherObj, const CollisionInfo &info) |
This method is called automatically if testCollide indicates a real collision. | |
virtual void | _notifyCollided (SceneQuery::WorldFragment *wf, const CollisionInfo &info) |
This method is called automatically if testCollide indicates a real collision. | |
SceneNode * | getSceneNode (void) |
Gets the SceneNode which is being used to represent this object's position in the OGRE world. | |
Entity * | getEntity (void) |
Gets the Entity which is being used to represent this object in the OGRE world. | |
dBody * | getOdeBody (void) |
Gets the ODE body used to represent this object's mass and current velocity. | |
void | setMassSphere (Real density, Real radius) |
Set the mass parameters of this object to represent a sphere. | |
void | setMassBox (Real density, const Vector3 &dimensions, const Quaternion &orientation=Quaternion::IDENTITY) |
Set the mass parameters of this object to represent a box. | |
void | setMassCappedCylinder (Real density, Real length, Real width, const Quaternion &orientation=Quaternion::IDENTITY) |
Set the mass parameters of this object to represent a capped cylinder. | |
void | setMassExpert (Real mass, const Vector3 center, const Matrix3 inertia) |
Sets the mass parameters manually, use only if you know how! | |
const dMass * | getOdeMass (void) |
Gets the ODE mass parameters for this object. | |
void | setLinearVelocity (const Vector3 &vel) |
Sets the current linear velocity of this object. | |
void | setLinearVelocity (Real x, Real y, Real z) |
Sets the current linear velocity of this object. | |
const Vector3 & | getLinearVelocity (void) |
Gets the current linear velocity of this object. | |
const Vector3 & | getAngularVelocity (void) |
Gets the current angular velocity of this object. | |
void | setAngularVelocity (const Vector3 &vel) |
Sets the current angular velocity of this object. | |
void | setAngularVelocity (Real x, Real y, Real z) |
Sets the current angular velocity of this object. | |
virtual void | translate (const Vector3 &d) |
Moves the object along it's local axes. | |
virtual void | translate (Real x, Real y, Real z) |
Moves the object along it's local axes. | |
virtual void | translateWorldSpace (const Vector3 &d) |
Moves the object along the world axes. | |
virtual void | translateWorldSpace (Real x, Real y, Real z) |
Moves the object along the world axes. | |
virtual void | roll (const Radian &angle) |
Rotate the object around the local Z-axis. | |
void | roll (Real angleunits) |
virtual void | pitch (const Radian &angle) |
Rotate the object around the local X-axis. | |
void | pitch (Real angleunits) |
virtual void | yaw (const Radian &angle) |
Rotate the object around the local Y-axis. | |
void | yaw (Real angleunits) |
virtual void | rotate (const Vector3 &axis, const Radian &angle) |
Rotate the object around an arbitrary axis. | |
void | rotate (const Vector3 &axis, Real angleunits) |
virtual void | rotate (const Quaternion &q) |
Rotate the object around an aritrary axis using a Quarternion. | |
virtual long | getTypeID (void) const |
Return a number identifying the type of user defined object. | |
virtual const String & | getTypeName (void) const |
Return a string identifying the type of user defined object. | |
Protected Types | |
typedef std::list< dGeom * > | CollisionProxyList |
Collision proxies, must be set up if collision enabled. | |
Protected Member Functions | |
void | setUp (const String &name) |
virtual void | updateCollisionProxies (void) |
Internal method for updating the state of the collision proxies. | |
virtual bool | testCollidePlaneBounds (SceneQuery::WorldFragment *wf) |
Internal method for testing the plane bounded region WorldFragment type. | |
virtual void | setEntityQueryFlags (void) |
Internal method for updating the query mask. | |
Protected Attributes | |
SceneNode * | mSceneNode |
Entity * | mEntity |
dBody * | mOdeBody |
Dynamics properties, must be set up by subclasses if dynamics enabled. | |
dMass | mMass |
Mass parameters. | |
CollisionProxyList | mCollisionProxies |
bool | mDynamicsEnabled |
bool | mReenableIfInteractedWith |
bool | mCollisionEnabled |
Real | mBounceCoeffRestitution |
Real | mBounceVelocityThreshold |
Real | mSoftness |
Real | mFriction |
Real | mLinearVelDisableThreshold |
Real | mAngularVelDisableThreshold |
Real | mDisableTime |
Real | mDisableTimeEnd |
|
Collision proxies, must be set up if collision enabled.
Definition at line 56 of file OgreRefAppApplicationObject.h. |
|
|
|
|
|
This method is called automatically if testCollide indicates a real collision.
Reimplemented in OgreRefApp::CollideCamera. |
|
This method is called automatically if testCollide indicates a real collision.
Reimplemented in OgreRefApp::Box. |
|
Updates the position of this game object from the simulation.
|
|
Adds a linear force to this object, in object space, at the position indicated.
|
|
Adds a linear force to this object, in object space, at the position indicated.
|
|
Adds a linear force to this object, in world space, at the position indicated.
|
|
Adds a linear force to this object, in world space, at the position indicated.
|
|
Adds rotational force to this object, in object space.
|
|
Adds rotational force to this object, in object space.
|
|
Adds rotational force to this object, in world space.
|
|
Adds rotational force to this object, in world space.
|
|
Gets the current angular velocity of this object.
|
|
Gets the cefficient of restitution (bounciness) for this object.
|
|
Gets the bounce velocity threshold for this object.
|
|
Gets the Entity which is being used to represent this object in the OGRE world.
|
|
Gets the Coulomb frictional coefficient for this object.
|
|
Gets the current linear velocity of this object.
|
|
Gets the ODE body used to represent this object's mass and current velocity.
|
|
Gets the ODE mass parameters for this object.
|
|
Gets the current orientation of this object.
Reimplemented in OgreRefApp::CollideCamera. |
|
Gets the current position of this object.
|
|
Gets the SceneNode which is being used to represent this object's position in the OGRE world.
|
|
Gets the softness factor of this object.
|
|
Return a number identifying the type of user defined object.
|
|
Return a string identifying the type of user defined object.
|
|
Returns whether or not this object is considered for collision.
|
|
Returns whether or not this object is physically simulated.
|
|
Reimplemented in OgreRefApp::CollideCamera. Definition at line 418 of file OgreRefAppApplicationObject.h. |
|
Rotate the object around the local X-axis.
Reimplemented in OgreRefApp::CollideCamera. |
|
Reimplemented in OgreRefApp::CollideCamera. Definition at line 409 of file OgreRefAppApplicationObject.h. |
|
Rotate the object around the local Z-axis.
Reimplemented in OgreRefApp::CollideCamera. |
|
Rotate the object around an aritrary axis using a Quarternion.
Reimplemented in OgreRefApp::CollideCamera. |
|
Reimplemented in OgreRefApp::CollideCamera. Definition at line 436 of file OgreRefAppApplicationObject.h. |
|
Rotate the object around an arbitrary axis.
Reimplemented in OgreRefApp::CollideCamera. |
|
Sets the current angular velocity of this object.
|
|
Sets the current angular velocity of this object.
|
|
Sets the 'bounciness' of this object.
|
|
|
|
Sets the linear and angular velocity thresholds, below which the object will have it's dynamics automatically disabled for performance.
|
|
Sets whether or not this object is physically simulated at this time.
|
|
Internal method for updating the query mask.
|
|
Sets the Coulomb frictional coefficient for this object.
|
|
Sets the current linear velocity of this object.
|
|
Sets the current linear velocity of this object.
|
|
Set the mass parameters of this object to represent a box.
|
|
Set the mass parameters of this object to represent a capped cylinder.
|
|
Sets the mass parameters manually, use only if you know how!
|
|
Set the mass parameters of this object to represent a sphere.
|
|
Sets the orientation of this object.
Reimplemented in OgreRefApp::CollideCamera. |
|
Sets the position of this object.
|
|
Sets the position of this object.
|
|
Sets the softness of this object, which determines how much it is allowed to penetrate other objects.
|
|
Implements OgreRefApp::ApplicationObject. |
|
Tests to see if there is a detailed collision between this object and the world fragment passed in.
|
|
Tests to see if there is a detailed collision between this object and the object passed in.
|
|
Internal method for testing the plane bounded region WorldFragment type.
|
|
Moves the object along it's local axes.
|
|
Moves the object along it's local axes.
Reimplemented in OgreRefApp::CollideCamera. |
|
Moves the object along the world axes.
|
|
Moves the object along the world axes.
|
|
Internal method for updating the state of the collision proxies.
|
|
Reimplemented in OgreRefApp::CollideCamera. Definition at line 427 of file OgreRefAppApplicationObject.h. |
|
Rotate the object around the local Y-axis.
Reimplemented in OgreRefApp::CollideCamera. |
|
Definition at line 69 of file OgreRefAppApplicationObject.h. |
|
Definition at line 64 of file OgreRefAppApplicationObject.h. |
|
Definition at line 65 of file OgreRefAppApplicationObject.h. |
|
Definition at line 62 of file OgreRefAppApplicationObject.h. |
|
Definition at line 57 of file OgreRefAppApplicationObject.h. |
|
Definition at line 70 of file OgreRefAppApplicationObject.h. |
|
Definition at line 71 of file OgreRefAppApplicationObject.h. |
|
Definition at line 60 of file OgreRefAppApplicationObject.h. |
|
Definition at line 47 of file OgreRefAppApplicationObject.h. |
|
Definition at line 67 of file OgreRefAppApplicationObject.h. |
|
Definition at line 68 of file OgreRefAppApplicationObject.h. |
|
Mass parameters.
Definition at line 52 of file OgreRefAppApplicationObject.h. |
|
Dynamics properties, must be set up by subclasses if dynamics enabled.
Definition at line 50 of file OgreRefAppApplicationObject.h. |
|
Definition at line 61 of file OgreRefAppApplicationObject.h. |
|
Definition at line 46 of file OgreRefAppApplicationObject.h. |
|
Definition at line 66 of file OgreRefAppApplicationObject.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:55:14 2006