btRayResultCallback_getClosestHitFraction

A function defined in GMBullet.yy

btRayResultCallback_getClosestHitFraction(rayResultCallback)

Description

Gets the closest hit fraction from a btRayResultCallback instance. The closest hit fraction is a value between 0 and 1 representing the fractional distance along the ray where the hit occurred. A value of 1 means no hit, and a value of 0 means the hit occurred at the origin of the ray.

Arguments

Name Type Description
rayResultCallback Pointer A pointer to the btRayResultCallback instance from which to get the closest hit fraction. It should be a valid pointer to an existing btRayResultCallback instance.

Returns

Real The closest hit fraction (a value between 0 and 1) from the rayResultCallback instance.


Copyright © 2024, BlueBurn. Built on October 13, 2024 using GMDoc.