NewtonUserMeshCollisionRayHitCallback

From Newton Wiki
Revision as of 08:02, 10 June 2019 by Unknown user (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonUserMeshCollisionRayHitCallback

typedef dFloat (*NewtonUserMeshCollisionRayHitCallback) (NewtonUserMeshCollisionRayHitDesc* const lineDescData)

Usage

Called whenever a raycast is performed on a User Mesh collision.

Parameters

Return

  • Return the distance at which a object was hit return 1.0 if nothing was hit.

Remarks

  • 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.

See also

NewtonCreateUserMeshCollision