CapsuleMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Class representing a capsule-shaped PrimitiveMesh.

Description

Class representing a capsule-shaped PrimitiveMesh.

Properties

float

mid_height

1.0

int

radial_segments

64

float

radius

1.0

int

rings

8


Property Descriptions

float mid_height = 1.0

  • void set_mid_height ( float value )

  • float get_mid_height ( )

Height of the middle cylindrical part of the capsule (without the hemispherical ends).

Note: The capsule's total height is equal to mid_height + 2 * radius.


int radial_segments = 64

  • void set_radial_segments ( int value )

  • int get_radial_segments ( )

Number of radial segments on the capsule mesh.


float radius = 1.0

  • void set_radius ( float value )

  • float get_radius ( )

Radius of the capsule mesh.


int rings = 8

  • void set_rings ( int value )

  • int get_rings ( )

Number of rings along the height of the capsule.