void PhysActor_PhysX::SetAngularVelocity(vec3f velocity) { if (!impl->physActor) { LOG("Cannot set angular velocity from actor because actor ptr is null!"); return; } PxRigidBody* actor = nullptr; if (impl->physActor->isRigidDynamic() || impl->physActor->isRigidBody()) actor = (PxRigidBody*)impl->physActor; else { LOG("Cannot set angular velocity from actor because actor is not a Rigid Dynamic or Rigid Body actor."); return; } if (!actor) return; actor->setAngularVelocity(PxVec3(velocity.x, velocity.y, velocity.z)); }