MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / getLocalVector

Method getLocalVector

src/body/Body.cpp:461–463  ·  view source on GitHub ↗

Return the body local-space coordinates of a vector given in the world-space coordinates * @param worldVector A vector in world-space coordinates * @return The vector in the local-space coordinates of the body */

Source from the content-addressed store, hash-verified

459* @return The vector in the local-space coordinates of the body
460*/
461Vector3 Body::getLocalVector(const Vector3& worldVector) const {
462 return mWorld.mTransformComponents.getTransform(mEntity).getOrientation().getInverse() * worldVector;
463}
464
465// Update whether the body has at least one simulation provider
466void Body::updateHasSimulationCollider() {

Callers

nothing calls this directly

Calls 1

getInverseMethod · 0.45

Tested by

no test coverage detected