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

Method getLocalPoint

src/body/Body.cpp:452–454  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

450* @return The point in the local-space coordinates of the body
451*/
452Vector3 Body::getLocalPoint(const Vector3& worldPoint) const {
453 return mWorld.mTransformComponents.getTransform(mEntity).getInverse() * worldPoint;
454}
455
456// Return the body local-space coordinates of a vector given in the world-space coordinates
457/**

Callers

nothing calls this directly

Calls 1

getInverseMethod · 0.45

Tested by

no test coverage detected