mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00:00
Removing void
This commit is contained in:
parent
05687c120f
commit
f01aae138f
@ -112,7 +112,7 @@ namespace Physic
|
||||
}
|
||||
}
|
||||
|
||||
Ogre::Vector3 PhysicActor::getPosition(void)
|
||||
Ogre::Vector3 PhysicActor::getPosition()
|
||||
{
|
||||
btVector3 vec = mBody->getWorldTransform().getOrigin();
|
||||
Ogre::Quaternion rotation = Ogre::Quaternion(mBody->getWorldTransform().getRotation().getW(), mBody->getWorldTransform().getRotation().getX(),
|
||||
@ -122,7 +122,7 @@ namespace Physic
|
||||
return visualPosition;
|
||||
}
|
||||
|
||||
Ogre::Quaternion PhysicActor::getRotation(void)
|
||||
Ogre::Quaternion PhysicActor::getRotation()
|
||||
{
|
||||
btQuaternion quat = mBody->getWorldTransform().getRotation() * mBoxRotationInverse;
|
||||
return Ogre::Quaternion(quat.getW(), quat.getX(), quat.getY(), quat.getZ());
|
||||
|
@ -93,12 +93,12 @@ namespace Physic
|
||||
* This returns the visual position of the PhysicActor (used to position a scenenode).
|
||||
* Note - this is different from the position of the contained mBody.
|
||||
*/
|
||||
Ogre::Vector3 getPosition(void);
|
||||
Ogre::Vector3 getPosition();
|
||||
|
||||
/**
|
||||
* Returns the visual orientation of the PhysicActor
|
||||
*/
|
||||
Ogre::Quaternion getRotation(void);
|
||||
Ogre::Quaternion getRotation();
|
||||
|
||||
/**
|
||||
* Sets the position of mBody from a visual position input.
|
||||
|
Loading…
x
Reference in New Issue
Block a user