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

Method getPos

src/PhysicsBodyComponent.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45vector3 PhysicsBodyComponent::getPos() {
46 auto pos = rigidActor->getGlobalPose();
47 return vector3(pos.p.x, pos.p.y, pos.p.z);
48}
49
50void PhysicsBodyComponent::setPos(const vector3& pos) {
51 rigidActor->setGlobalPose(PxTransform(PxVec3(pos.x, pos.y, pos.z),rigidActor->getGlobalPose().q));

Callers 1

TickMethod · 0.45

Calls 1

getGlobalPoseMethod · 0.45

Tested by

no test coverage detected