SO3Engine
|
OgreNewt_World.cpp
Go to the documentation of this file.
12 WorldTriggerManager::WorldTriggerManager(World* const world): CustomTriggerManager(world->getNewtonWorld())
82CustomTriggerController* World::CreateController(const dMatrix& matrix, NewtonCollision* const convexShape)
95void World::setPreListener(std::string name, void* const listenerUserData, NewtonWorldUpdateListenerCallback update)
100void World::setpostListener(std::string name, void* const listenerUserData, NewtonWorldUpdateListenerCallback update)
213// -------------------------------------------------------------------------------------------------------------
214// -------------------------------------------------------------------------------------------------------------
215// -------------------------------------------------------------------------------------------------------------
216// -------------------------------------------------------------------------------------------------------------
Body * getNext() const
use this function to iterate through all bodies
Definition OgreNewt_Body.cpp:741
World(Ogre::Real desiredFps=100.0f, int maxUpdatesPerFrames=5, Ogre::String name="main")
Constructor, creates the world and gives it a name.
Definition OgreNewt_World.cpp:34
void setPreListener(std::string name, void *const listenerUserData, NewtonWorldUpdateListenerCallback update)
Definition OgreNewt_World.cpp:95
void DestroyController(CustomTriggerController *const controller)
Definition OgreNewt_World.cpp:90
WorldTriggerManager * m_triggerManager
Definition OgreNewt_World.h:411
static void setAllocators(NewtonAllocMemory newtonAlloc, NewtonFreeMemory newtonFree)
Set the newton world allocators,.
Definition OgreNewt_World.cpp:124
void setpostListener(std::string name, void *const listenerUserData, NewtonWorldUpdateListenerCallback update)
Definition OgreNewt_World.cpp:100
Ogre::Vector3 m_defaultAngularDamping
Definition OgreNewt_World.h:400
int update(Ogre::Real t_step)
update the world by the specified time_step.
Definition OgreNewt_World.cpp:135
void setThreadCount(int threads)
set the number of threads for the physics simulation to use, don't do this while world update
Definition OgreNewt_World.cpp:129
CustomTriggerController * CreateController(const dMatrix &matrix, NewtonCollision *const convexShape)
Definition OgreNewt_World.cpp:82
void setUpdateFPS(Ogre::Real desiredFps, int maxUpdatesPerFrames)
set simulation frames per and max updated per updates
Definition OgreNewt_World.cpp:105
Body * getFirstBody() const
to iterate through all bodies call this function and then use body->getNext()
Definition OgreNewt_World.cpp:191
Ogre::Real m_defaultLinearDamping
Definition OgreNewt_World.h:401
void setTriggerInsideCallback(WorldTriggerInsideCallback callback)
Definition OgreNewt_World.cpp:22
void setTriggerExitCallback(WorldTriggerExitCallback callback)
Definition OgreNewt_World.cpp:27
void setTriggerEnterCallback(WorldTriggerEnterCallback callback)
Definition OgreNewt_World.cpp:17
CustomTriggerController * CreateController(const dMatrix &matrix, NewtonCollision *const convexShape)
Definition OgreNewt_World.h:96
void DestroyController(CustomTriggerController *const controller)
Definition OgreNewt_World.h:104
WorldTriggerManager(World *const world)
Definition OgreNewt_World.cpp:12
std::function< void(NewtonBody *const visitor)> WorldTriggerInsideCallback
Definition OgreNewt_World.h:33
std::function< void(NewtonBody *const visitor)> WorldTriggerEnterCallback
Definition OgreNewt_World.h:32
std::function< void(NewtonBody *const visitor)> WorldTriggerExitCallback
Definition OgreNewt_World.h:34
Generated by 1.9.8