#include <OgreRefAppCollideCamera.h>
Inheritance diagram for OgreRefApp::CollideCamera:
Public Methods | |
CollideCamera (const String &name) | |
Camera * | getRealCamera (void) |
Gets the internal Camera object. | |
void | _notifyCollided (SceneQuery::WorldFragment *wf, const CollisionInfo &info) |
This method is called automatically if testCollide indicates a real collision. | |
void | setOrientation (const Quaternion &orientation) |
Sets the orientation of this object. | |
const Quaternion & | getOrientation (void) |
Gets the current orientation of this object. | |
void | translate (const Vector3 &d) |
Moves the object along it's local axes. | |
void | roll (const Radian &angle) |
Rotate the object around the local Z-axis. | |
void | roll (Real angleunits) |
void | pitch (const Radian &angle) |
Rotate the object around the local X-axis. | |
void | pitch (Real angleunits) |
void | yaw (const Radian &angle) |
Rotate the object around the local Y-axis. | |
void | yaw (Real angleunits) |
void | rotate (const Vector3 &axis, const Radian &angle) |
Rotate the object around an arbitrary axis. | |
void | rotate (const Vector3 &axis, Real angleunits) |
void | rotate (const Quaternion &q) |
Rotate the object around an aritrary axis using a Quarternion. | |
void | setProjectionType (ProjectionType pt) |
Sets the type of projection to use (orthographic or perspective). | |
ProjectionType | getProjectionType (void) const |
Retrieves info on the type of projection used (orthographic or perspective). | |
void | setDetailLevel (SceneDetailLevel sd) |
Sets the level of rendering detail required from this camera. | |
SceneDetailLevel | getDetailLevel (void) const |
Retrieves the level of detail that the camera will render. | |
void | setDirection (Real x, Real y, Real z) |
Sets the camera's direction vector. | |
void | setDirection (const Vector3 &vec) |
Sets the camera's direction vector. | |
Vector3 | getDirection (void) const |
void | lookAt (const Vector3 &targetPoint) |
Points the camera at a location in worldspace. | |
void | lookAt (Real x, Real y, Real z) |
Points the camera at a location in worldspace. | |
void | setFixedYawAxis (bool useFixed, const Vector3 &fixedAxis=Vector3::UNIT_Y) |
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice. | |
void | setFOVy (const Radian &fovy) |
Sets the Y-dimension Field Of View (FOV) of the camera. | |
void | setFOVy (Real fovy) |
const Radian & | getFOVy (void) const |
Retrieves the cameras Y-dimension Field Of View (FOV). | |
void | setNearClipDistance (Real nearDist) |
Sets the position of the near clipping plane. | |
Real | getNearClipDistance (void) const |
Sets the position of the near clipping plane. | |
void | setFarClipDistance (Real farDist) |
Sets the distance to the far clipping plane. | |
Real | getFarClipDistance (void) const |
Retrieves the distance from the camera to the far clipping plane. | |
void | setAspectRatio (Real ratio) |
Sets the aspect ratio for the camera viewport. | |
Real | getAspectRatio (void) const |
Retreives the current aspect ratio. | |
const Plane & | getFrustumPlane (FrustumPlane plane) |
Retrieves a specified plane of the frustum. | |
bool | isVisible (const AxisAlignedBox &bound, FrustumPlane *culledBy=0) |
Tests whether the given container is visible in the Frustum. | |
bool | isVisible (const Sphere &bound, FrustumPlane *culledBy=0) |
Tests whether the given container is visible in the Frustum. | |
bool | isVisible (const Vector3 &vert, FrustumPlane *culledBy=0) |
Tests whether the given vertex is visible in the Frustum. | |
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 const Vector3 & | getPosition (void) |
Gets the current position 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. | |
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 (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. | |
Protected Types | |
typedef std::list< dGeom * > | CollisionProxyList |
Collision proxies, must be set up if collision enabled. | |
Protected Methods | |
void | setUp (const String &name) |
Set up. | |
void | nearDistChanged (void) |
Triggers recacl of collison bounds. | |
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 | |
Camera * | mCamera |
Contained camera. | |
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 |
Definition at line 35 of file OgreRefAppCollideCamera.h.
|
Collision proxies, must be set up if collision enabled.
Definition at line 56 of file OgreRefAppApplicationObject.h. |
|
Definition at line 33 of file OgreRefAppCollideCamera.cpp. References setUp(), and Ogre::String. |
|
This method is called automatically if testCollide indicates a real collision.
Reimplemented in OgreRefApp::Box. Definition at line 531 of file OgreRefAppApplicationObject.cpp. Referenced by OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
This method is called automatically if testCollide indicates a real collision.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 62 of file OgreRefAppCollideCamera.cpp. References OgreRefApp::ApplicationObject::translateWorldSpace(). |
|
|
Adds a linear force to this object, in object space, at the position indicated.
Definition at line 245 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mOdeBody, and Ogre::Real. |
|
Adds a linear force to this object, in object space, at the position indicated.
Definition at line 239 of file OgreRefAppApplicationObject.cpp. |
|
Adds a linear force to this object, in world space, at the position indicated.
Definition at line 260 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mOdeBody, and Ogre::Real. |
|
Adds a linear force to this object, in world space, at the position indicated.
Definition at line 254 of file OgreRefAppApplicationObject.cpp. |
|
Adds rotational force to this object, in object space.
Definition at line 273 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mOdeBody, and Ogre::Real. |
|
Adds rotational force to this object, in object space.
Definition at line 268 of file OgreRefAppApplicationObject.cpp. |
|
Adds rotational force to this object, in world space.
Definition at line 284 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mOdeBody, and Ogre::Real. |
|
Adds rotational force to this object, in world space.
Definition at line 279 of file OgreRefAppApplicationObject.cpp. |
|
Gets the current angular velocity of this object.
Definition at line 672 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::isDynamicsEnabled(), and OgreRefApp::ApplicationObject::mOdeBody. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(). |
|
Retreives the current aspect ratio.
Definition at line 200 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. |
|
Gets the cefficient of restitution (bounciness) for this object.
Definition at line 552 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mBounceCoeffRestitution, and Ogre::Real. Referenced by OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
Gets the bounce velocity threshold for this object.
Definition at line 557 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mBounceVelocityThreshold, and Ogre::Real. Referenced by OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
Retrieves the level of detail that the camera will render.
Definition at line 127 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::SceneDetailLevel. |
|
Definition at line 143 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Gets the Entity which is being used to represent this object in the OGRE world.
Definition at line 295 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mEntity. |
|
Retrieves the distance from the camera to the far clipping plane.
Definition at line 190 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. |
|
Retrieves the cameras Y-dimension Field Of View (FOV).
Definition at line 169 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Gets the Coulomb frictional coefficient for this object.
Definition at line 584 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mFriction, and Ogre::Real. Referenced by OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
Retrieves a specified plane of the frustum.
Definition at line 205 of file OgreRefAppCollideCamera.cpp. References Ogre::FrustumPlane, and mCamera. |
|
Gets the current linear velocity of this object.
Definition at line 658 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::isDynamicsEnabled(), and OgreRefApp::ApplicationObject::mOdeBody. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(). |
|
Sets the position of the near clipping plane.
Definition at line 180 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. Referenced by nearDistChanged(). |
|
Gets the ODE body used to represent this object's mass and current velocity.
Definition at line 300 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::isDynamicsEnabled(), and OgreRefApp::ApplicationObject::mOdeBody. Referenced by OgreRefApp::Joint::setAttachments(), OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
Gets the ODE mass parameters for this object.
Definition at line 638 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mMass. |
|
Gets the current orientation of this object.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 74 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Gets the current position of this object.
Definition at line 113 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mSceneNode. Referenced by OgreRefApp::ApplicationObject::setDynamicsEnabled(), and OgreRefApp::ApplicationObject::translateWorldSpace(). |
|
Retrieves info on the type of projection used (orthographic or perspective).
Definition at line 117 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::ProjectionType. |
|
Gets the internal Camera object.
Definition at line 52 of file OgreRefAppCollideCamera.h. |
|
Gets the SceneNode which is being used to represent this object's position in the OGRE world.
Definition at line 290 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mSceneNode. |
|
Gets the softness factor of this object.
Definition at line 567 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mSoftness, and Ogre::Real. Referenced by OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
Returns whether or not this object is considered for collision.
Definition at line 193 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mCollisionEnabled. |
|
Returns whether or not this object is physically simulated.
Definition at line 198 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mDynamicsEnabled, and OgreRefApp::ApplicationObject::mReenableIfInteractedWith. Referenced by OgreRefApp::ApplicationObject::getAngularVelocity(), OgreRefApp::ApplicationObject::getLinearVelocity(), OgreRefApp::ApplicationObject::getOdeBody(), OgreRefApp::ApplicationObject::setAngularVelocity(), OgreRefApp::ApplicationObject::setLinearVelocity(), OgreRefApp::ApplicationObject::setOrientation(), OgreRefApp::ApplicationObject::setPosition(), OgreRefApp::ApplicationObject::testCollide(), and OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
Tests whether the given vertex is visible in the Frustum.
Definition at line 220 of file OgreRefAppCollideCamera.cpp. References Ogre::FrustumPlane, and mCamera. |
|
Tests whether the given container is visible in the Frustum.
Definition at line 215 of file OgreRefAppCollideCamera.cpp. References Ogre::FrustumPlane, and mCamera. |
|
Tests whether the given container is visible in the Frustum.
Definition at line 210 of file OgreRefAppCollideCamera.cpp. References Ogre::FrustumPlane, and mCamera. |
|
Points the camera at a location in worldspace.
Definition at line 153 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. |
|
Points the camera at a location in worldspace.
Definition at line 148 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Triggers recacl of collison bounds.
Definition at line 225 of file OgreRefAppCollideCamera.cpp. References getNearClipDistance(), and OgreRefApp::ApplicationObject::mCollisionProxies. Referenced by setFOVy(), and setNearClipDistance(). |
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 89 of file OgreRefAppCollideCamera.h. References Ogre::Real. |
|
Rotate the object around the local X-axis.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 84 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 80 of file OgreRefAppCollideCamera.h. References Ogre::Real. |
|
Rotate the object around the local Z-axis.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 79 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Rotate the object around an aritrary axis using a Quarternion.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 99 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 107 of file OgreRefAppCollideCamera.h. References Ogre::Real. |
|
Rotate the object around an arbitrary axis.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 94 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Sets the current angular velocity of this object.
Definition at line 690 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::isDynamicsEnabled(), OgreRefApp::ApplicationObject::mOdeBody, Ogre::Real, and OgreRefApp::ApplicationObject::setDynamicsEnabled(). |
|
Sets the current angular velocity of this object.
Definition at line 685 of file OgreRefAppApplicationObject.cpp. |
|
Sets the aspect ratio for the camera viewport.
Definition at line 195 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. |
|
Sets the 'bounciness' of this object.
Definition at line 545 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mBounceCoeffRestitution, OgreRefApp::ApplicationObject::mBounceVelocityThreshold, and Ogre::Real. Referenced by OgreRefApp::OgreHead::setUp(), OgreRefApp::Box::setUp(), and OgreRefApp::Ball::setUp(). |
|
Definition at line 203 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mCollisionEnabled, and OgreRefApp::ApplicationObject::setEntityQueryFlags(). |
|
Sets the level of rendering detail required from this camera.
Definition at line 122 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::SceneDetailLevel. |
|
Sets the camera's direction vector.
Definition at line 138 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Sets the camera's direction vector.
Definition at line 132 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. |
|
Sets the linear and angular velocity thresholds, below which the object will have it's dynamics automatically disabled for performance.
Definition at line 123 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mAngularVelDisableThreshold, OgreRefApp::ApplicationObject::mDisableTime, OgreRefApp::ApplicationObject::mLinearVelDisableThreshold, and Ogre::Real. |
|
Sets whether or not this object is physically simulated at this time.
Definition at line 209 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::getOrientation(), OgreRefApp::ApplicationObject::getPosition(), OgreRefApp::ApplicationObject::mDynamicsEnabled, OgreRefApp::ApplicationObject::mOdeBody, and OgreRefApp::ApplicationObject::mReenableIfInteractedWith. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), OgreRefApp::ApplicationObject::setAngularVelocity(), and OgreRefApp::ApplicationObject::setLinearVelocity(). |
|
Internal method for updating the query mask.
Definition at line 749 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mCollisionEnabled, and OgreRefApp::ApplicationObject::mEntity. Referenced by OgreRefApp::ApplicationObject::setCollisionEnabled(). |
|
Sets the distance to the far clipping plane.
Definition at line 185 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::Real. |
|
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice.
Definition at line 158 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Definition at line 210 of file OgreRefAppCollideCamera.h. References Ogre::Real. |
|
Sets the Y-dimension Field Of View (FOV) of the camera.
Definition at line 163 of file OgreRefAppCollideCamera.cpp. References mCamera, and nearDistChanged(). |
|
Sets the Coulomb frictional coefficient for this object.
Definition at line 572 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mFriction, and Ogre::Real. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::OgreHead::setUp(), OgreRefApp::Box::setUp(), and OgreRefApp::Ball::setUp(). |
|
Sets the current linear velocity of this object.
Definition at line 648 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::isDynamicsEnabled(), OgreRefApp::ApplicationObject::mOdeBody, Ogre::Real, and OgreRefApp::ApplicationObject::setDynamicsEnabled(). |
|
Sets the current linear velocity of this object.
Definition at line 643 of file OgreRefAppApplicationObject.cpp. |
|
Set the mass parameters of this object to represent a box.
Definition at line 595 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mMass, OgreRefApp::ApplicationObject::mOdeBody, OgreRefApp::OgreToOde(), and Ogre::Real. Referenced by OgreRefApp::Box::setUp(). |
|
Set the mass parameters of this object to represent a capped cylinder.
Definition at line 611 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mMass, OgreRefApp::ApplicationObject::mOdeBody, OgreRefApp::OgreToOde(), and Ogre::Real. |
|
Sets the mass parameters manually, use only if you know how!
Definition at line 625 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mMass, OgreRefApp::ApplicationObject::mOdeBody, OgreRefApp::OgreToOde(), and Ogre::Real. |
|
Set the mass parameters of this object to represent a sphere.
Definition at line 589 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mMass, OgreRefApp::ApplicationObject::mOdeBody, and Ogre::Real. Referenced by OgreRefApp::OgreHead::setUp(), and OgreRefApp::Ball::setUp(). |
|
Sets the position of the near clipping plane.
Definition at line 174 of file OgreRefAppCollideCamera.cpp. References mCamera, nearDistChanged(), and Ogre::Real. |
|
Sets the orientation of this object.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 68 of file OgreRefAppCollideCamera.cpp. References mCamera. Referenced by OgreRefApp::World::createCamera(). |
|
Sets the position of this object.
Definition at line 94 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::isDynamicsEnabled(), OgreRefApp::ApplicationObject::mOdeBody, OgreRefApp::ApplicationObject::mSceneNode, Ogre::Real, and OgreRefApp::ApplicationObject::updateCollisionProxies(). |
|
Sets the position of this object.
Definition at line 89 of file OgreRefAppApplicationObject.cpp. Referenced by OgreRefApp::World::createBall(), OgreRefApp::World::createBox(), OgreRefApp::World::createCamera(), OgreRefApp::World::createOgreHead(), OgreRefApp::World::createPlane(), and OgreRefApp::ApplicationObject::translateWorldSpace(). |
|
Sets the type of projection to use (orthographic or perspective). Default is perspective. Definition at line 112 of file OgreRefAppCollideCamera.cpp. References mCamera, and Ogre::ProjectionType. |
|
Sets the softness of this object, which determines how much it is allowed to penetrate other objects.
Definition at line 562 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mSoftness, and Ogre::Real. Referenced by OgreRefApp::OgreHead::setUp(), OgreRefApp::Box::setUp(), and OgreRefApp::Ball::setUp(). |
|
Set up.
Implements OgreRefApp::ApplicationObject. Definition at line 39 of file OgreRefAppCollideCamera.cpp. References mCamera, OgreRefApp::ApplicationObject::mCollisionProxies, OgreRefApp::ApplicationObject::mSceneNode, Ogre::String, and OgreRefApp::ApplicationObject::updateCollisionProxies(). Referenced by CollideCamera(). |
|
Tests to see if there is a detailed collision between this object and the world fragment passed in.
Definition at line 425 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::testCollidePlaneBounds(). |
|
|
Internal method for testing the plane bounded region WorldFragment type.
Definition at line 441 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::_notifyCollided(), OgreRefApp::ApplicationObject::getBounceRestitutionValue(), OgreRefApp::ApplicationObject::getBounceVelocityThreshold(), OgreRefApp::ApplicationObject::getFriction(), OgreRefApp::ApplicationObject::getOdeBody(), OgreRefApp::ApplicationObject::getSoftness(), OgreRefApp::ApplicationObject::isDynamicsEnabled(), OgreRefApp::ApplicationObject::mCollisionProxies, OgreRefApp::ApplicationObject::CollisionInfo::normal, OgreRefApp::ApplicationObject::CollisionInfo::penetrationDepth, OgreRefApp::ApplicationObject::CollisionInfo::position, and Ogre::Real. Referenced by OgreRefApp::ApplicationObject::testCollide(). |
|
Moves the object along it's local axes.
This method moves the object by the supplied vector along the local axes of the obect.
Definition at line 707 of file OgreRefAppApplicationObject.cpp. References Ogre::Real, and OgreRefApp::ApplicationObject::translate(). |
|
Moves the object along it's local axes.
This method moves the object by the supplied vector along the local axes of the obect.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 104 of file OgreRefAppCollideCamera.cpp. References mCamera, and OgreRefApp::ApplicationObject::translateWorldSpace(). |
|
Moves the object along the world axes.
This method moves the object by the supplied vector along the local axes of the obect.
Definition at line 717 of file OgreRefAppApplicationObject.cpp. References Ogre::Real, and OgreRefApp::ApplicationObject::translateWorldSpace(). |
|
Moves the object along the world axes.
This method moves the object by the supplied vector along the world axes.
Definition at line 712 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::getPosition(), and OgreRefApp::ApplicationObject::setPosition(). Referenced by _notifyCollided(), translate(), OgreRefApp::ApplicationObject::translate(), and OgreRefApp::ApplicationObject::translateWorldSpace(). |
|
Internal method for updating the state of the collision proxies.
Definition at line 313 of file OgreRefAppApplicationObject.cpp. References OgreRefApp::ApplicationObject::mCollisionProxies, and OgreRefApp::ApplicationObject::mSceneNode. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), OgreRefApp::ApplicationObject::setOrientation(), OgreRefApp::ApplicationObject::setPosition(), OgreRefApp::FinitePlane::setUp(), OgreRefApp::OgreHead::setUp(), setUp(), OgreRefApp::Box::setUp(), and OgreRefApp::Ball::setUp(). |
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 98 of file OgreRefAppCollideCamera.h. References Ogre::Real. |
|
Rotate the object around the local Y-axis.
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 89 of file OgreRefAppCollideCamera.cpp. References mCamera. |
|
Definition at line 69 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), OgreRefApp::ApplicationObject::ApplicationObject(), and OgreRefApp::ApplicationObject::setDynamicsDisableThreshold(). |
|
Definition at line 64 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::getBounceRestitutionValue(), and OgreRefApp::ApplicationObject::setBounceParameters(). |
|
Definition at line 65 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::getBounceVelocityThreshold(), and OgreRefApp::ApplicationObject::setBounceParameters(). |
|
Contained camera.
Definition at line 43 of file OgreRefAppCollideCamera.h. Referenced by getAspectRatio(), getDetailLevel(), getDirection(), getFarClipDistance(), getFOVy(), getFrustumPlane(), getNearClipDistance(), getOrientation(), getProjectionType(), isVisible(), lookAt(), pitch(), roll(), rotate(), setAspectRatio(), setDetailLevel(), setDirection(), setFarClipDistance(), setFixedYawAxis(), setFOVy(), setNearClipDistance(), setOrientation(), setProjectionType(), setUp(), translate(), and yaw(). |
|
Definition at line 62 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::isCollisionEnabled(), OgreRefApp::ApplicationObject::setCollisionEnabled(), and OgreRefApp::ApplicationObject::setEntityQueryFlags(). |
|
|
Definition at line 70 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), OgreRefApp::ApplicationObject::ApplicationObject(), and OgreRefApp::ApplicationObject::setDynamicsDisableThreshold(). |
|
Definition at line 71 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), and OgreRefApp::ApplicationObject::ApplicationObject(). |
|
Definition at line 60 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::isDynamicsEnabled(), and OgreRefApp::ApplicationObject::setDynamicsEnabled(). |
|
Definition at line 47 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::getEntity(), OgreRefApp::ApplicationObject::setEntityQueryFlags(), OgreRefApp::FinitePlane::setUp(), OgreRefApp::OgreHead::setUp(), OgreRefApp::Box::setUp(), and OgreRefApp::Ball::setUp(). |
|
Definition at line 67 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::getFriction(), and OgreRefApp::ApplicationObject::setFriction(). |
|
Definition at line 68 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::_updateFromDynamics(), OgreRefApp::ApplicationObject::ApplicationObject(), and OgreRefApp::ApplicationObject::setDynamicsDisableThreshold(). |
|
Mass parameters.
Definition at line 52 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::getOdeMass(), OgreRefApp::ApplicationObject::setMassBox(), OgreRefApp::ApplicationObject::setMassCappedCylinder(), OgreRefApp::ApplicationObject::setMassExpert(), and OgreRefApp::ApplicationObject::setMassSphere(). |
|
|
Definition at line 61 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::isDynamicsEnabled(), and OgreRefApp::ApplicationObject::setDynamicsEnabled(). |
|
|
Definition at line 66 of file OgreRefAppApplicationObject.h. Referenced by OgreRefApp::ApplicationObject::ApplicationObject(), OgreRefApp::ApplicationObject::getSoftness(), and OgreRefApp::ApplicationObject::setSoftness(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:57 2004