b3dCreateCapsule

Creates a capsule mesh primitive (radius 1, total height 4, centered at origin, rounded ends). Takes textureSlots, uvMode, unique (no segments parameter - fixed detail). Returns mesh entity handle or 0 on failure.

3D Graphics

Parameters & Returns

Parameters

textureSlots Int
uvMode Int
unique Int

Returns

Int

Quick Summary

Creates a capsule mesh primitive (radius 1, total height 4, centered at origin, rounded ends). Takes textureSlots, uvMode, unique (no segments parameter - fixed detail). Returns mesh entity handle or 0 on failure.

Technical Exegesis...

Creates a capsule mesh primitive (radius 1, total height 4, centered at origin, rounded ends). Takes textureSlots, uvMode, unique (no segments parameter - fixed detail). Returns mesh entity handle or 0 on failure. Creates surface-based mesh, generates cylindrical body (Y=-1 to Y=+1), top hemisphere (centered at Y=+1), bottom hemisphere (centered at Y=-1), sets normals, unlocks. Capsule dimensions: radius 1, cylinder height 2, hemisphere radius 1 on each end, total height 4 (from Y=-2 to Y=+2).

Example

Example.bam
; No example implemented yet