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 */
| 450 | * @return The point in the local-space coordinates of the body |
| 451 | */ |
| 452 | Vector3 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 | /** |
nothing calls this directly
no test coverage detected