b3dCharacterGroundY

Returns ground Y position if grounded, else character center Y (use to get floor height). Takes characterHandle (character controller from b3dCreateCharacterController). Returns ground surface Y coordinate if character is grounded (contact with floor below), returns character center Y position if airborne (no ground contact).

3D Graphics

Parameters & Returns

Parameters

characterHandle Int

Returns

Double

Quick Summary

Returns ground Y position if grounded, else character center Y (use to get floor height). Takes characterHandle (character controller from b3dCreateCharacterController). Returns ground surface Y coordinate if character is grounded (contact with floor below), returns character center Y position if airborne (no ground contact).

Technical Exegesis...

Returns ground Y position if grounded, else character center Y (use to get floor height). Takes characterHandle (character controller from b3dCreateCharacterController). Returns ground surface Y coordinate if character is grounded (contact with floor below), returns character center Y position if airborne (no ground contact). Use to get accurate floor height for character positioning, ledge detection, or visual effects.

This function queries ground position.

Example

Example.bam
; No example implemented yet