b3dSetCharacterControllerShape

Changes character controller collision shape (0=capsule 1=cylinder 2=sphere 3=box, recreates CharacterVirtual). Takes characterHandle (character controller from b3dCreateCharacterController), shapeType (0=capsule default, 1=cylinder, 2=sphere, 3=box), radius (shape radius or half-extent for box), height (total height for capsule/cylinder/box, ignored for sphere). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

characterHandle Int
shapeType Int
radius Double
height Double

Returns

Void

Quick Summary

Changes character controller collision shape (0=capsule 1=cylinder 2=sphere 3=box, recreates CharacterVirtual). Takes characterHandle (character controller from b3dCreateCharacterController), shapeType (0=capsule default, 1=cylinder, 2=sphere, 3=box), radius (shape radius or half-extent for box), height (total height for capsule/cylinder/box, ignored for sphere). Returns nothing.

Technical Exegesis...

Changes character controller collision shape (0=capsule 1=cylinder 2=sphere 3=box, recreates CharacterVirtual). Takes characterHandle (character controller from b3dCreateCharacterController), shapeType (0=capsule default, 1=cylinder, 2=sphere, 3=box), radius (shape radius or half-extent for box), height (total height for capsule/cylinder/box, ignored for sphere). Returns nothing. Recreates CharacterVirtual with new shape, preserves state and position, prints shape change to console.

Example

Example.bam
; No example implemented yet