#include <OgreRefAppWorld.h>
Inheritance diagram for OgreRefApp::World:
Public Types | |
enum | WorldType { WT_REFAPP_GENERIC, WT_REFAPP_BSP } |
World type, you'll want to extend this for your own apps. More... | |
Public Member Functions | |
World (SceneManager *sceneMgr, WorldType worldType=WT_REFAPP_GENERIC) | |
Creates an instance of the world. | |
~World () | |
SceneManager * | getSceneManager (void) |
Get the scene manager for this world. | |
OgreHead * | createOgreHead (const String &name, const Vector3 &pos=Vector3::ZERO, const Quaternion &orientation=Quaternion::IDENTITY) |
Create an OGRE head object. | |
FinitePlane * | createPlane (const String &name, Real width, Real height, const Vector3 &pos=Vector3::ZERO, const Quaternion &orientation=Quaternion::IDENTITY) |
Create a plane object. | |
Ball * | createBall (const String &name, Real radius, const Vector3 &pos=Vector3::ZERO, const Quaternion &orientation=Quaternion::IDENTITY) |
Create a ball object. | |
Box * | createBox (const String &name, Real width, Real height, Real depth, const Vector3 &pos=Vector3::ZERO, const Quaternion &orientation=Quaternion::IDENTITY) |
Create a box object. | |
CollideCamera * | createCamera (const String &name, const Vector3 &pos=Vector3::ZERO, const Quaternion &orientation=Quaternion::IDENTITY) |
Create a camera which interacts with the world. | |
void | clear (void) |
Clears the scene. | |
dWorld * | getOdeWorld (void) |
dJointGroup * | getOdeContactJointGroup (void) |
void | _applyCollision (void) |
Detects all the collisions in the world and acts on them. | |
void | _applyDynamics (Real timeElapsed) |
Updates the world simulation. | |
void | _notifyDynamicsStateForObject (ApplicationObject *obj, bool dynamicsEnabled) |
Internal method for notifying the world of a change in the dynamics status of an object. | |
void | setGravity (const Vector3 &vec) |
Sets the gravity vector, units are in m/s^2. | |
const Vector3 & | getGravity (void) |
Gets the gravity vector. | |
Joint * | createJoint (const String &name, Joint::JointType jtype, ApplicationObject *obj1, ApplicationObject *obj2) |
Creates a Joint object for linking objects together in the world. | |
void | setSimulationStepSize (Real step) |
Sets the step size of the simulation. | |
Real | getSimulationStepSize (void) |
Returns the size of the simulation step. | |
void | simulationStep (Real timeElapsed) |
Performs a simulation step, ie applies collision and physics. | |
Static Public Member Functions | |
World & | getSingleton (void) |
Override standard Singleton retrieval. | |
World * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Types | |
typedef std::map< String, ApplicationObject * > | ObjectMap |
typedef std::map< String, Joint * > | JointMap |
typedef std::set< ApplicationObject * > | ObjectSet |
Protected Attributes | |
SceneManager * | mSceneMgr |
Pointer to OGRE's scene manager. | |
ObjectMap | mObjects |
Main list of objects. | |
JointMap | mJoints |
ObjectSet | mDynamicsObjects |
Set of dynamics objects (those to perform physics on). | |
dWorld * | mOdeWorld |
dJointGroup * | mOdeContactGroup |
Contact joint group. | |
Vector3 | mGravity |
IntersectionSceneQuery * | mIntersectionQuery |
Real | mSimulationStepSize |
The step size of the collision / physics simulation. | |
WorldType | mWorldType |
The type of world we're dealing with. | |
Static Protected Attributes | |
World * | ms_Singleton |
|
Definition at line 50 of file OgreRefAppWorld.h. |
|
Definition at line 46 of file OgreRefAppWorld.h. |
|
Definition at line 53 of file OgreRefAppWorld.h. |
|
World type, you'll want to extend this for your own apps.
Definition at line 38 of file OgreRefAppWorld.h. |
|
Creates an instance of the world.
|
|
|
|
Detects all the collisions in the world and acts on them.
|
|
Updates the world simulation.
|
|
Internal method for notifying the world of a change in the dynamics status of an object.
|
|
Clears the scene.
|
|
Create a ball object.
|
|
Create a box object.
|
|
Create a camera which interacts with the world.
|
|
Creates a Joint object for linking objects together in the world.
|
|
Create an OGRE head object.
|
|
Create a plane object.
|
|
Gets the gravity vector.
|
|
|
|
|
|
Get the scene manager for this world.
|
|
Returns the size of the simulation step.
|
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< World >. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< World >. |
|
Sets the gravity vector, units are in m/s^2.
|
|
Sets the step size of the simulation.
|
|
Performs a simulation step, ie applies collision and physics.
|
|
Set of dynamics objects (those to perform physics on).
Definition at line 55 of file OgreRefAppWorld.h. |
|
Definition at line 63 of file OgreRefAppWorld.h. |
|
Definition at line 65 of file OgreRefAppWorld.h. |
|
Definition at line 51 of file OgreRefAppWorld.h. |
|
Main list of objects.
Definition at line 48 of file OgreRefAppWorld.h. |
|
Contact joint group.
Definition at line 61 of file OgreRefAppWorld.h. |
|
Definition at line 58 of file OgreRefAppWorld.h. |
|
Definition at line 54 of file OgreSingleton.h. |
|
Pointer to OGRE's scene manager.
Definition at line 44 of file OgreRefAppWorld.h. |
|
The step size of the collision / physics simulation.
Definition at line 68 of file OgreRefAppWorld.h. |
|
The type of world we're dealing with.
Definition at line 71 of file OgreRefAppWorld.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:25 2006