#include <OgreRefAppCollideCamera.h>
Inheritance diagram for OgreRefApp::CollideCamera:
Public Member Functions | |
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 | setPolygonMode (PolygonMode sd) |
Sets the level of rendering detail required from this camera. | |
PolygonMode | getPolygonMode (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. | |
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) |
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. |
|
|
|
This method is called automatically if testCollide indicates a real collision.
Reimplemented in OgreRefApp::Box. |
|
This method is called automatically if testCollide indicates a real collision.
Reimplemented from OgreRefApp::ApplicationObject. |
|
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.
|
|
Retreives the current aspect ratio.
|
|
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.
|
|
Retrieves the distance from the camera to the far clipping plane.
|
|
Retrieves the cameras Y-dimension Field Of View (FOV).
|
|
Gets the Coulomb frictional coefficient for this object.
|
|
Retrieves a specified plane of the frustum.
|
|
Gets the current linear velocity of this object.
|
|
Sets the position of the near clipping plane.
|
|
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 from OgreRefApp::ApplicationObject. |
|
Retrieves the level of detail that the camera will render.
|
|
Gets the current position of this object.
|
|
Retrieves info on the type of projection used (orthographic or perspective).
|
|
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.
|
|
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.
|
|
Tests whether the given vertex is visible in the Frustum.
|
|
Tests whether the given container is visible in the Frustum.
|
|
Tests whether the given container is visible in the Frustum.
|
|
Points the camera at a location in worldspace.
|
|
Points the camera at a location in worldspace.
|
|
Triggers recacl of collison bounds.
|
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 89 of file OgreRefAppCollideCamera.h. |
|
Rotate the object around the local X-axis.
Reimplemented from OgreRefApp::ApplicationObject. |
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 80 of file OgreRefAppCollideCamera.h. |
|
Rotate the object around the local Z-axis.
Reimplemented from OgreRefApp::ApplicationObject. |
|
Rotate the object around an aritrary axis using a Quarternion.
Reimplemented from OgreRefApp::ApplicationObject. |
|
Reimplemented from OgreRefApp::ApplicationObject. Definition at line 107 of file OgreRefAppCollideCamera.h. |
|
Rotate the object around an arbitrary axis.
Reimplemented from OgreRefApp::ApplicationObject. |
|
Sets the current angular velocity of this object.
|
|
Sets the current angular velocity of this object.
|
|
Sets the aspect ratio for the camera viewport.
|
|
Sets the 'bounciness' of this object.
|
|
|
|
Sets the camera's direction vector.
|
|
Sets the camera's direction vector.
|
|
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 distance to the far clipping plane.
|
|
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice.
|
|
Definition at line 210 of file OgreRefAppCollideCamera.h. |
|
Sets the Y-dimension Field Of View (FOV) of the camera.
|
|
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 position of the near clipping plane.
|
|
Sets the orientation of this object.
Reimplemented from OgreRefApp::ApplicationObject. |
|
Sets the level of rendering detail required from this camera.
|
|
Sets the position of this object.
|
|
Sets the position of this object.
|
|
Sets the type of projection to use (orthographic or perspective). Default is perspective. |
|
Sets the softness of this object, which determines how much it is allowed to penetrate other objects.
|
|
Set up.
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 from OgreRefApp::ApplicationObject. |
|
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 from OgreRefApp::ApplicationObject. Definition at line 98 of file OgreRefAppCollideCamera.h. |
|
Rotate the object around the local Y-axis.
Reimplemented from OgreRefApp::ApplicationObject. |
|
Definition at line 69 of file OgreRefAppApplicationObject.h. |
|
Definition at line 64 of file OgreRefAppApplicationObject.h. |
|
Definition at line 65 of file OgreRefAppApplicationObject.h. |
|
Contained camera.
Definition at line 43 of file OgreRefAppCollideCamera.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:54:56 2006