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
Number of divisions along the straight middle part
Number of divisions around the capsule; more is rounder
Full length from end to end, rounded caps included, in scene units
Radius of the middle part, in scene units, unless the cap radii override it
Number of divisions over each rounded end; more is smoother
Radius of the top end, in scene units
Radius of the bottom end, in scene units
Number of divisions over the top end, overriding capSubdivisions
Number of divisions over the bottom end, overriding capSubdivisions
Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
When 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.