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 */
| 459 | * @return The vector in the local-space coordinates of the body |
| 460 | */ |
| 461 | Vector3 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 |
| 466 | void Body::updateHasSimulationCollider() { |
nothing calls this directly
no test coverage detected