SO3Engine
|
OgreNewt_World.h
Go to the documentation of this file.
6 OgreNewt basically has no license, you may use any or all of the library however you desire... I hope it can help you in any way.
69 template<class c> void setTriggerEnterCallback( std::function<void(c*, NewtonBody* const)> callback, c *instancedClassPointer )
75 template<class c> void setTriggerInsideCallback( std::function<void(c*, NewtonBody* const)> callback, c *instancedClassPointer )
81 template<class c> void setTriggerExitCallback( std::function<void(c*, NewtonBody* const)> callback, c *instancedClassPointer )
96 CustomTriggerController* CreateController(const dMatrix& matrix, NewtonCollision* const convexShape)
111 virtual void EventCallback(const CustomTriggerController* const me, TriggerEventType event, NewtonBody* const visitor) const
205 CustomTriggerController* CreateController(const dMatrix& matrix, NewtonCollision* const convexShape);
208 void setPreListener(std::string name, void* const listenerUserData, NewtonWorldUpdateListenerCallback update);
209 void setpostListener(std::string name, void* const listenerUserData, NewtonWorldUpdateListenerCallback update);
255 void setDefaultLinearDamping(Ogre::Real defaultLinearDamping) { m_defaultLinearDamping = defaultLinearDamping; }
271 void setDefaultAngularDamping(Ogre::Vector3 defaultAngularDamping) { m_defaultAngularDamping = defaultAngularDamping; }
291 const MaterialID* getDefaultMaterialID() const { return m_defaultMatID; } // get pointer to default material ID object.
332 int getPlatformArchitecture(Ogre::String& description) { char desc[265]; int mode = NewtonGetCurrentDevice(m_world); NewtonGetDeviceString(m_world, mode, desc, sizeof(desc)); description = desc; return mode;}
344 void setMultithreadSolverOnSingleIsland( int mode ) { NewtonSetMultiThreadSolverOnSingleIsland( m_world, mode ); }
347 int getMultithreadSolverOnSingleIsland( ) const { return NewtonGetMultiThreadSolverOnSingleIsland( m_world ); }
Iterate through all bodies in a specific AABB in the world.
Definition OgreNewt_BodyInAABBIterator.h:31
void setPlatformArchitecture(int mode)
specify a specific architecture to use for physics calculations.
Definition OgreNewt_World.h:320
void setDefaultAngularDamping(Ogre::Vector3 defaultAngularDamping)
sets default angular damping
Definition OgreNewt_World.h:271
WorldTriggerManager * m_triggerManager
Definition OgreNewt_World.h:411
void setDefaultLinearDamping(Ogre::Real defaultLinearDamping)
sets default linear damping
Definition OgreNewt_World.h:255
void criticalSectionUnlock() const
notify the exit of a critical section of code.
Definition OgreNewt_World.h:359
const MaterialID * getDefaultMaterialID() const
get the default materialID object.
Definition OgreNewt_World.h:291
Ogre::Vector3 m_defaultAngularDamping
Definition OgreNewt_World.h:400
void setMultithreadSolverOnSingleIsland(int mode)
multithread settings
Definition OgreNewt_World.h:344
Ogre::Real getUpdateFPS() const
returns desired update frames per second
Definition OgreNewt_World.h:245
BodyInAABBIterator m_bodyInAABBIterator
Definition OgreNewt_World.h:406
std::vector< BodyVector > BodyVectorVector
Definition OgreNewt_World.h:409
std::vector< OgreNewt::Body * > BodyVector
Definition OgreNewt_World.h:408
int getThreadCount() const
get the number of threads the simulation is using.
Definition OgreNewt_World.h:353
NewtonWorld * getNewtonWorld() const
retrieves a pointer to the NewtonWorld
Definition OgreNewt_World.h:284
void criticalSectionLock() const
notify an entrance to a critical section of code.
Definition OgreNewt_World.h:356
std::function< void(OgreNewt::Body *, int threadIndex)> LeaveWorldCallback
leave world callback.
Definition OgreNewt_World.h:193
Ogre::Vector3 getDefaultAngularDamping() const
return default angular damping
Definition OgreNewt_World.h:277
Ogre::Real getDefaultLinearDamping() const
return default linear damping
Definition OgreNewt_World.h:261
int getMultithreadSolverOnSingleIsland() const
get multithread settings
Definition OgreNewt_World.h:347
int getConstraintCount() const
get the number of constaints in the simulation
Definition OgreNewt_World.h:341
void waitForUpdateToFinish() const
Definition OgreNewt_World.h:361
int getPlatformArchitecture(Ogre::String &description)
get the architecture used for physics calculations.
Definition OgreNewt_World.h:332
Ogre::Real m_defaultLinearDamping
Definition OgreNewt_World.h:401
const BodyInAABBIterator & getBodyInAABBIterator() const
get a bodyInAABBIterator for this world
Definition OgreNewt_World.h:379
virtual void OnEnter(NewtonBody *const visitor)
Definition OgreNewt_World.h:50
void setTriggerEnterCallback(std::function< void(c *, NewtonBody *const)> callback, c *instancedClassPointer)
Definition OgreNewt_World.h:69
virtual ~TriggerCallback()
Definition OgreNewt_World.h:46
virtual void OnExit(NewtonBody *const visitor)
Definition OgreNewt_World.h:62
void setTriggerExitCallback(std::function< void(c *, NewtonBody *const)> callback, c *instancedClassPointer)
Definition OgreNewt_World.h:81
void setTriggerInsideCallback(std::function< void(c *, NewtonBody *const)> callback, c *instancedClassPointer)
Definition OgreNewt_World.h:75
CustomTriggerController * m_controller
Definition OgreNewt_World.h:86
TriggerCallback(CustomTriggerController *const controller)
Definition OgreNewt_World.h:39
virtual void OnInside(NewtonBody *const visitor)
Definition OgreNewt_World.h:56
CustomTriggerController * CreateController(const dMatrix &matrix, NewtonCollision *const convexShape)
Definition OgreNewt_World.h:96
void DestroyController(CustomTriggerController *const controller)
Definition OgreNewt_World.h:104
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
virtual void EventCallback(const CustomTriggerController *const me, TriggerEventType event, NewtonBody *const visitor) const
Definition OgreNewt_World.h:111
Generated by 1.9.8