[SOLVED] Conversion of world to local coordinates

I have a square (really a zero height Box) attached to a Node which has been translated and rotated. I can pick it by casting a ray and the CollisionResult can provide the world coordinates of the pick point/ray intersection.
How can I find the local coordinates on my Box of the pick point?



Have you tried

Vector3f localPick = boxGeometry.worldToLocal(worldPick, null);


Thanks guys,
looks like just what I was after. :slight_smile:

1 Like