Interface ICreateCapsuleOptions
interface ICreateCapsuleOptions {
bottomCapSubdivisions?: number;
capSubdivisions?: number;
height?: number;
orientation?: Vector3;
radius?: number;
radiusBottom?: number;
radiusTop?: number;
subdivisions?: number;
tessellation?: number;
topCapSubdivisions?: number;
updatable?: boolean;
}
bottomCapSubdivisions?: number;
capSubdivisions?: number;
height?: number;
orientation?: Vector3;
radius?: number;
radiusBottom?: number;
radiusTop?: number;
subdivisions?: number;
tessellation?: number;
topCapSubdivisions?: number;
updatable?: boolean;
}
Properties
Optionalbottom Cap Subdivisions
bottomCapSubdivisions?: number
Overwrite for the bottom capSubdivisions.
Optionalcap Subdivisions
capSubdivisions?: number
Number of sub segments on the cap sections of the capsule running parallel to orientation.
Optionalheight
height?: number
Height or Length of the capsule.
Optionalorientation
The Orientation of the capsule. Default : Vector3.Up()
Optionalradius
radius?: number
Radius of the capsule.
Optionalradius Bottom
radiusBottom?: number
Overwrite for the bottom radius.
Optionalradius Top
radiusTop?: number
Overwrite for the top radius.
Optionalsubdivisions
subdivisions?: number
Number of sub segments on the tube section of the capsule running parallel to orientation.
Optionaltessellation
tessellation?: number
Number of cylindrical segments on the capsule.
Optionaltop Cap Subdivisions
topCapSubdivisions?: number
Overwrite for the top capSubdivisions.
Optionalupdatable
updatable?: boolean
Internal geometry is supposed to change once created.
The options Interface for creating a Capsule Mesh