Exemple #1
0
 void NonStaticWorldObject::InternalSetOrientation(const Quaternion& Rotation)
 {
     //Bullet
     this->PhysicsObject->getWorldTransform().setRotation(Rotation.GetBulletQuaternion(true));
     this->PhysicsObject->getInterpolationWorldTransform().setRotation(Rotation.GetBulletQuaternion(true));
     //Ogre
     this->GraphicsNode->setOrientation(Rotation.GetOgreQuaternion());
 }
Exemple #2
0
 void SliderConstraint::SetPivotBRotation(const Quaternion& Rotation)
     { this->Slider->getFrameOffsetA().setRotation(Rotation.GetBulletQuaternion()); }