Optionalorientation: Vector3Optionalsubdivisions: numberOptionaltessellation: numberOptionalheight: numberOptionalradius: numberOptionalcapSubdivisions: numberOptionalradiusTop: numberOptionalradiusBottom: numberOptionaltopCapSubdivisions: numberOptionalbottomCapSubdivisions: numberOptionalsideOrientation: sideOrientationEnumOptionalenableShadows: booleanThe direction the length of the capsule runs along, as [x, y, z]; [0, 1, 0] stands it
upright
OptionalsubdivisionsNumber of divisions along the straight middle part
OptionaltessellationNumber of divisions around the capsule; more is rounder
OptionalheightFull length from end to end, rounded caps included, in scene units
OptionalradiusRadius of the middle part, in scene units, unless the cap radii override it
OptionalcapNumber of divisions over each rounded end; more is smoother
OptionalradiusRadius of the top end, in scene units
OptionalradiusRadius of the bottom end, in scene units
OptionaltopNumber of divisions over the top end, overriding capSubdivisions
OptionalbottomNumber of divisions over the bottom end, overriding capSubdivisions
OptionalsideWhich side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
OptionalenableWhen true, the mesh casts and receives shadows from the lights that have them enabled
Feeds
babylon.meshBuilder.createCapsule: the axis, length and radii of a cylinder with rounded ends, and how finely each part is divided.