|
Last change
on this file since 42 was
21,
checked in by nicolasc, 18 years ago
|
|
added ogreode and Colladaplugin
|
|
File size:
775 bytes
|
| Line | |
|---|
| 1 | #ifndef _OGREODEUTILITY_H_ |
|---|
| 2 | #define _OGREODEUTILITY_H_ |
|---|
| 3 | |
|---|
| 4 | #include "OgreOdePreReqs.h" |
|---|
| 5 | |
|---|
| 6 | namespace OgreOde |
|---|
| 7 | { |
|---|
| 8 | class _OgreOdeExport Utility |
|---|
| 9 | { |
|---|
| 10 | public: |
|---|
| 11 | Utility(){} |
|---|
| 12 | ~Utility(){} |
|---|
| 13 | |
|---|
| 14 | static Ogre::Real randomReal(); |
|---|
| 15 | |
|---|
| 16 | static const Ogre::Real Infinity; |
|---|
| 17 | |
|---|
| 18 | /** returns a CFM value for use on joints or contacts |
|---|
| 19 | */ |
|---|
| 20 | static Ogre::Real getCFM(Ogre::Real spring, Ogre::Real dampening, Ogre::Real timeStep); |
|---|
| 21 | |
|---|
| 22 | /** returns a ERP value for use on joints or contacts |
|---|
| 23 | */ |
|---|
| 24 | static Ogre::Real getERP(Ogre::Real spring, Ogre::Real dampening, Ogre::Real timeStep); |
|---|
| 25 | |
|---|
| 26 | /** can be used to get spring constants out of a ERP and CFM value |
|---|
| 27 | */ |
|---|
| 28 | static void getSpringConstants(Ogre::Real CFM, Ogre::Real ERP, Ogre::Real timeStep, Ogre::Real &spring, Ogre::Real &dampening); |
|---|
| 29 | }; |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | #endif |
|---|
| 33 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.