MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / getKinematicTarget

Method getKinematicTarget

physx/source/physx/src/NpRigidDynamic.cpp:136–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135
136bool NpRigidDynamic::getKinematicTarget(PxTransform& target) const
137{
138 NP_READ_CHECK(NpActor::getOwnerScene(*this));
139
140 const Scb::Body& b = getScbBodyFast();
141 if(b.getFlags() & PxRigidBodyFlag::eKINEMATIC)
142 {
143 PxTransform bodyTarget;
144 if(b.getKinematicTarget(bodyTarget))
145 {
146 // The internal target is body related. Transform to actor related target
147 target = bodyTarget * b.getBody2Actor().getInverse();
148 return true;
149 }
150 }
151 return false;
152}
153
154void NpRigidDynamic::setCMassLocalPose(const PxTransform& pose)
155{

Callers 3

setCMassLocalPoseMethod · 0.45
getGlobalPoseMethod · 0.45

Calls 2

getFlagsMethod · 0.45
getInverseMethod · 0.45

Tested by

no test coverage detected