Raycast to check if player is standing on ground

@gbz, this is all by design that the intersectBox does not account for the length and I will add doc in the comments of the method to precise it.

In your case fast picking would be the way to go :slight_smile:
https://www.babylonjs-playground.com/#3EDS3A#13

basically the pick predicate will help you only test the mesh you want and the 3rd param fast check will be pretty close to the fast Line vs AABB algo in use in the intersectBox function.

3 Likes