MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / getRot

Method getRot

src/PhysicsBodyComponent.cpp:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54quaternion PhysicsBodyComponent::getRot() {
55 auto rot = rigidActor->getGlobalPose();
56 return quaternion(rot.q.w, rot.q.x,rot.q.y,rot.q.z);
57}
58
59void PhysicsBodyComponent::setRot(const quaternion& quat) {
60 rigidActor->setGlobalPose(PxTransform(rigidActor->getGlobalPose().p,PxQuat(quat.x,quat.y,quat.z,quat.w)));

Callers 3

TickMethod · 0.80
onTickPreRenderMethod · 0.80
onDigitalInputEventMethod · 0.80

Calls 1

getGlobalPoseMethod · 0.45

Tested by

no test coverage detected