b3dCanStepDown

Checks if ground exists within maxDistance below character feet (1=ground found 0=no ground, uses raycast). Takes characterHandle (character controller from b3dCreateCharacterController), maxDistance (maximum downward raycast distance in units to check for ground). Returns 1 if ground found within distance (solid surface below character), 0 if no ground (void, pit, or too far below), 0 on error (invalid character).

3D Graphics

Parameters & Returns

Parameters

characterHandle Int
maxDistance Double

Returns

Int

Quick Summary

Checks if ground exists within maxDistance below character feet (1=ground found 0=no ground, uses raycast). Takes characterHandle (character controller from b3dCreateCharacterController), maxDistance (maximum downward raycast distance in units to check for ground). Returns 1 if ground found within distance (solid surface below character), 0 if no ground (void, pit, or too far below), 0 on error (invalid character).

Technical Exegesis...

Checks if ground exists within maxDistance below character feet (1=ground found 0=no ground, uses raycast). Takes characterHandle (character controller from b3dCreateCharacterController), maxDistance (maximum downward raycast distance in units to check for ground). Returns 1 if ground found within distance (solid surface below character), 0 if no ground (void, pit, or too far below), 0 on error (invalid character). Raycasts downward from character feet, detects ledges and drop-offs.

Example

Example.bam
; No example implemented yet