MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getPosition

Method getPosition

src/physics/MotionState.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17Math::float3 Physics::MotionState::getPosition()
18{
19 btTransform trans;
20 getWorldTransform(trans);
21 btVector3 origin = trans.getOrigin();
22 return Math::float3(origin.x(), origin.y(), origin.z());
23}
24
25Math::float4 Physics::MotionState::getRotationQuat()
26{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected