SpringBoneCollisionCapsule3D

Hereda: SpringBoneCollision3D < Node3D < Node < Object

Una colisión con forma de cápsula que interactúa con SpringBoneSimulator3D.

Descripción

Una colisión con forma de cápsula que interactúa con SpringBoneSimulator3D.

Propiedades

float

height

0.5

bool

inside

false

float

mid_height

float

radius

0.1


Descripciones de Propiedades

float height = 0.5 🔗

  • void set_height(value: float)

  • float get_height()

The capsule's full height, including the hemispheres.

Note: The height of a capsule must be at least twice its radius. Otherwise, the capsule becomes a sphere. If the height is less than twice the radius, the properties adjust to a valid value.


bool inside = false 🔗

  • void set_inside(value: bool)

  • bool is_inside()

Si es true, la colisión actúa para atrapar la articulación dentro de la colisión.


float mid_height 🔗

  • void set_mid_height(value: float)

  • float get_mid_height()

La altura de la cápsula, excluyendo los hemisferios. Esta es la altura de la parte cilíndrica central en el medio de la cápsula, y es la distancia entre los centros de los dos hemisferios. Esto es un envoltorio para height.


float radius = 0.1 🔗

  • void set_radius(value: float)

  • float get_radius()

The capsule's radius.

Note: The radius of a capsule cannot be greater than half of its height. Otherwise, the capsule becomes a sphere. If the radius is greater than half of the height, the properties adjust to a valid value.