typedef dFloat (*NewtonUserMeshCollisionRayHitCallback) (NewtonUserMeshCollisionRayHitDesc* const lineDescData)
Called whenever a raycast is performed on a User Mesh collision.
- NewtonUserMeshCollisionRayHitDesc* lineDescData - fill ray normal hit information in this structure, if anything is hit.
- Return the distance at which a object was hit return 1.0 if nothing was hit.
- This is not a library function, but a callback event.
- It is not neccesary to implement raycasting for your user mesh, if you don't then raycasts will behave as if the shape is not there.