b3dSetCharacterHeight

Changes character controller height dynamically (recreates capsule, keeps feet at same position, scales entity). Takes characterHandle (character controller from b3dCreateCharacterController), newHeight (new total capsule height in units), newVisualBottomOffset (new offset from entity center to visual bottom for alignment). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

characterHandle Int
newHeight Double
newVisualBottomOffset Double

Returns

Void

Quick Summary

Changes character controller height dynamically (recreates capsule, keeps feet at same position, scales entity). Takes characterHandle (character controller from b3dCreateCharacterController), newHeight (new total capsule height in units), newVisualBottomOffset (new offset from entity center to visual bottom for alignment). Returns nothing.

Technical Exegesis...

Changes character controller height dynamically (recreates capsule, keeps feet at same position, scales entity). Takes characterHandle (character controller from b3dCreateCharacterController), newHeight (new total capsule height in units), newVisualBottomOffset (new offset from entity center to visual bottom for alignment). Returns nothing. Recreates CharacterVirtual with new height, adjusts position to keep feet grounded, scales entity vertically. Use for crouch/stand transitions, dynamic height changes.

Example

Example.bam
; No example implemented yet