API

Interface ICreateCapsuleOptions

The options Interface for creating a Capsule Mesh

interface ICreateCapsuleOptions {
    bottomCapSubdivisions?: number;
    capSubdivisions?: number;
    height?: number;
    orientation?: Vector3;
    radius?: number;
    radiusBottom?: number;
    radiusTop?: number;
    subdivisions?: number;
    tessellation?: number;
    topCapSubdivisions?: number;
    updatable?: boolean;
}
Index
bottomCapSubdivisions?: number

Overwrite for the bottom capSubdivisions.

capSubdivisions?: number

Number of sub segments on the cap sections of the capsule running parallel to orientation.

height?: number

Height or Length of the capsule.

orientation?: Vector3

The Orientation of the capsule. Default : Vector3.Up()

radius?: number

Radius of the capsule.

radiusBottom?: number

Overwrite for the bottom radius.

radiusTop?: number

Overwrite for the top radius.

subdivisions?: number

Number of sub segments on the tube section of the capsule running parallel to orientation.

tessellation?: number

Number of cylindrical segments on the capsule.

topCapSubdivisions?: number

Overwrite for the top capSubdivisions.

updatable?: boolean

Internal geometry is supposed to change once created.