void InputModule::moveSphere(Ogre::Vector3 rotation) { PhysicsComponent* component = dynamic_cast<PhysicsComponent*> (ENGINE->getPhysics()->getComponent(ENGINE->getEntity("playerSphere"))); Ogre::Vector3 vect = Ogre::Vector3(rotation.x, rotation.y, rotation.z); component->setComponentGravity(rotation * 10); }
void InputModule::moveSphere(Ogre::Vector3 direction) { PhysicsComponent* component = dynamic_cast<PhysicsComponent*> (ENGINE->getPhysics() ->getComponent(ENGINE->getEntity("playerSphere"))); component->setComponentGravity((direction) * 10); }