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()); }
void SliderConstraint::SetPivotBRotation(const Quaternion& Rotation) { this->Slider->getFrameOffsetA().setRotation(Rotation.GetBulletQuaternion()); }