CapsuleShape2D
Hereda: Shape2D < Resource < RefCounted < Object
Una forma de cápsula 2D utilizada para colisiones físicas.
Descripción
Una forma de cápsula 2D, para ser usada en física. Normalmente usada para proveer una forma para un CollisionShape2D.
Rendimiento: CapsuleShape2D es rápida para comprobar colisiones, pero es más lenta que RectangleShape2D y CircleShape2D.
Propiedades
|
||
|
Descripciones de Propiedades
The capsule's full height, including the semicircles.
Note: The height of a capsule must be at least twice its radius. Otherwise, the capsule becomes a circle. If the height is less than twice the radius, the properties adjust to a valid value.
La altura de la cápsula, excluyendo los semicírculos. Esta es la altura de la parte rectangular central en el medio de la cápsula, y es la distancia entre los centros de los dos semicírculos. Esto es un envoltorio para height.
The capsule's radius.
Note: The radius of a capsule cannot be greater than half of its height. Otherwise, the capsule becomes a circle. If the radius is greater than half of the height, the properties adjust to a valid value.