Last change
on this file since 1971 was
1919,
checked in by rgrieder, 16 years ago
|
Added OgreODE to our source repository because already we really need the newest version. And there is no hope to find any packages under linux.
The files included should compile and link with Ogre 1.4/1.6 and ODE 0.9/0.10. I was only able to test Ogre 1.4 and ODE 0.9/.10 under msvc until now.
|
-
Property svn:eol-style set to
native
|
File size:
845 bytes
|
Rev | Line | |
---|
[1919] | 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 | @param timeStep is the the stepping time for the world, see Steppers |
---|
| 20 | */ |
---|
| 21 | static Ogre::Real getCFM(Ogre::Real spring, Ogre::Real dampening, Ogre::Real timeStep); |
---|
| 22 | |
---|
| 23 | /** returns a ERP value for use on joints or contacts |
---|
| 24 | */ |
---|
| 25 | static Ogre::Real getERP(Ogre::Real spring, Ogre::Real dampening, Ogre::Real timeStep); |
---|
| 26 | |
---|
| 27 | /** can be used to get spring constants out of a ERP and CFM value |
---|
| 28 | */ |
---|
| 29 | static void getSpringConstants(Ogre::Real CFM, Ogre::Real ERP, Ogre::Real timeStep, Ogre::Real &spring, Ogre::Real &dampening); |
---|
| 30 | }; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | #endif |
---|
| 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.