Table of Contents

Class CapsuleMesh

Class representing a capsule-shaped PrimitiveMesh.

Inheritance
CapsuleMesh

Remarks

Class representing a capsule-shaped PrimitiveMesh.

Properties

height

Total height of the capsule mesh (including the hemispherical ends).

var height : float = 2.0

Property Value

float

Remarks

radial_segments

Number of radial segments on the capsule mesh.

var radial_segments : int = 64

Property Value

int

Remarks

  • void set_radial_segments(int value)
  • int get_radial_segments

radius

Radius of the capsule mesh.

var radius : float = 0.5

Property Value

float

Remarks

rings

Number of rings along the height of the capsule.

var rings : int = 8

Property Value

int

Remarks

  • void set_rings(int value)
  • int get_rings