SO3Engine
|
OgreNewt_Tools.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.
32 _OgreNewtExport void MatrixToQuatPos( const dFloat* matrix, Ogre::Quaternion& quat, Ogre::Vector3 &pos );
40 _OgreNewtExport void QuatPosToMatrix( const Ogre::Quaternion& quat, const Ogre::Vector3 &pos, dFloat* matrix );
73 _OgreNewtExport int CollisionPointDistance( const OgreNewt::World* world, const Ogre::Vector3& globalpt,
74 const OgreNewt::CollisionPtr& col, const Ogre::Quaternion& colorient, const Ogre::Vector3& colpos,
92 _OgreNewtExport int CollisionClosestPoint( const OgreNewt::World* world, const OgreNewt::CollisionPtr& colA, const Ogre::Quaternion& colOrientA, const Ogre::Vector3& colPosA,
93 const OgreNewt::CollisionPtr& colB, const Ogre::Quaternion& colOrientB, const Ogre::Vector3& colPosB,
104 _OgreNewtExport Ogre::AxisAlignedBox CollisionCalculateFittingAABB( const OgreNewt::CollisionPtr& col,
109 _OgreNewtExport Ogre::Vector3 CollisionSupportVertex( const OgreNewt::CollisionPtr& col, const Ogre::Vector3& dir );
116 _OgreNewtExport Ogre::Real calculateSpringDamperAcceleration( Ogre::Real deltaTime, Ogre::Real spingK,
174 MovableText(const Ogre::String &name, const Ogre::String &caption, const Ogre::String &fontName, Ogre::Real charHeight, const Ogre::ColourValue &color = Ogre::ColourValue::White);
183 void setTextAlignment(const HorizontalAlignment& horizontalAlignment, const VerticalAlignment& verticalAlignment);
216 const Ogre::String &getMovableType(void) const {static Ogre::String movType = "MovableText"; return movType;};
const Ogre::String & getMovableType(void) const
Definition OgreNewt_Tools.h:216
Ogre::AxisAlignedBox GetAABB(void)
Definition OgreNewt_Tools.h:198
Ogre::MaterialPtr mpMaterial
Definition OgreNewt_Tools.h:169
Ogre::Real getBoundingRadius(void) const
Definition OgreNewt_Tools.h:209
Ogre::Vector3 getLocalTranslation() const
Definition OgreNewt_Tools.h:196
Ogre::Real getSpaceWidth() const
Definition OgreNewt_Tools.h:194
Ogre::MaterialPtr mpBackgroundMaterial
Definition OgreNewt_Tools.h:170
HorizontalAlignment mHorizontalAlignment
Definition OgreNewt_Tools.h:145
const Ogre::ColourValue & getColor() const
Definition OgreNewt_Tools.h:191
VerticalAlignment
Definition OgreNewt_Tools.h:138
const Ogre::MaterialPtr & getMaterial(void) const
Definition OgreNewt_Tools.h:223
Ogre::Vector3 mGlobalTranslation
Definition OgreNewt_Tools.h:163
Ogre::Real getCharacterHeight() const
Definition OgreNewt_Tools.h:193
const Ogre::String & getCaption() const
Definition OgreNewt_Tools.h:190
Ogre::Real mTimeUntilNextToggle
Definition OgreNewt_Tools.h:160
Ogre::Vector3 getGlobalTranslation() const
Definition OgreNewt_Tools.h:195
VerticalAlignment mVerticalAlignment
Definition OgreNewt_Tools.h:146
Ogre::RenderOperation mRenderOp
Definition OgreNewt_Tools.h:149
const Ogre::AxisAlignedBox & getBoundingBox(void) const
Definition OgreNewt_Tools.h:214
const Ogre::String & getName(void) const
Definition OgreNewt_Tools.h:215
const Ogre::LightList & getLights(void) const
Definition OgreNewt_Tools.h:224
const Ogre::String & getFontName() const
Definition OgreNewt_Tools.h:189
Ogre::Real getSquaredViewDepth(const Ogre::Camera *cam) const
Definition OgreNewt_Tools.h:210
Ogre::Vector3 mLocalTranslation
Definition OgreNewt_Tools.h:164
HorizontalAlignment
Definition OgreNewt_Tools.h:137
bool getShowOnTop() const
Definition OgreNewt_Tools.h:197
_OgreNewtExport Ogre::Vector3 CollisionSupportVertex(const OgreNewt::CollisionPtr &col, const Ogre::Vector3 &dir)
Get a vertex of the collision in the given direction.
Definition OgreNewt_Tools.cpp:214
_OgreNewtExport Ogre::AxisAlignedBox CollisionCalculateFittingAABB(const OgreNewt::CollisionPtr &col, const Ogre::Quaternion &orient=Ogre::Quaternion::IDENTITY, const Ogre::Vector3 &pos=Ogre::Vector3::ZERO)
calculate the AABB of a collision primitive in an arbitrary orientation
Definition OgreNewt_Tools.cpp:192
_OgreNewtExport int CollisionClosestPoint(const OgreNewt::World *world, const OgreNewt::CollisionPtr &colA, const Ogre::Quaternion &colOrientA, const Ogre::Vector3 &colPosA, const OgreNewt::CollisionPtr &colB, const Ogre::Quaternion &colOrientB, const Ogre::Vector3 &colPosB, Ogre::Vector3 &retPosA, Ogre::Vector3 &retPosB, Ogre::Vector3 &retNorm, int threadIndex)
find the nearest 2 points between 2 collision shapes.
Definition OgreNewt_Tools.cpp:163
_OgreNewtExport int CollisionPointDistance(const OgreNewt::World *world, const Ogre::Vector3 &globalpt, const OgreNewt::CollisionPtr &col, const Ogre::Quaternion &colorient, const Ogre::Vector3 &colpos, Ogre::Vector3 &retpt, Ogre::Vector3 &retnormal, int threadIndex)
find the point on a collision primitive closest to a global point.
Definition OgreNewt_Tools.cpp:133
_OgreNewtExport void MatrixToMatrix4(const dFloat *matrix_in, Ogre::Matrix4 &matrix_out)
Take a Newton matrix and make it into an Ogre::Matrix4.
Definition OgreNewt_Tools.cpp:72
_OgreNewtExport void MatrixToQuatPos(const dFloat *matrix, Ogre::Quaternion &quat, Ogre::Vector3 &pos)
Take a Newton matrix and create a Quaternion + Position_vector.
_OgreNewtExport Ogre::Quaternion grammSchmidt(const Ogre::Vector3 &pin)
Definition OgreNewt_Tools.cpp:105
_OgreNewtExport void Matrix4ToMatrix(const Ogre::Matrix4 &matrix_in, dFloat *matrix_out)
Take an Ogre::Matrix4 and make it into a Newton-happy matrix.
Definition OgreNewt_Tools.cpp:81
_OgreNewtExport void QuatPosToMatrix(const Ogre::Quaternion &quat, const Ogre::Vector3 &pos, dFloat *matrix)
Take a Quaternion and Position Matrix and create a Newton-happy float matrix!
Definition OgreNewt_Tools.cpp:33
_OgreNewtExport Ogre::Real calculateSpringDamperAcceleration(Ogre::Real deltaTime, Ogre::Real spingK, Ogre::Real stretchDistance, Ogre::Real springDamping, Ogre::Real dampVelocity)
Definition OgreNewt_Tools.cpp:237
Generated by 1.9.8