Last change
on this file since 2143 was
2119,
checked in by rgrieder, 16 years ago
|
Merged physics branch into physics_new branch.
|
-
Property svn:eol-style set to
native
|
File size:
845 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 | @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.