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

Method getWorldVector

src/body/Body.cpp:443–445  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

441* @return The vector in world-space coordinates
442*/
443Vector3 Body::getWorldVector(const Vector3& localVector) const {
444 return mWorld.mTransformComponents.getTransform(mEntity).getOrientation() * localVector;
445}
446
447// Return the body local-space coordinates of a point given in the world-space coordinates
448/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected