Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Shape3D
Hereda: Resource < RefCounted < Object
Heredado por: BoxShape3D, CapsuleShape3D, ConcavePolygonShape3D, ConvexPolygonShape3D, CylinderShape3D, HeightMapShape3D, SeparationRayShape3D, SphereShape3D, WorldBoundaryShape3D
Abstract base class for 3D shapes used for physics collision.
Descripción
Abstract base class for all 3D shapes, intended for use in physics.
Performance: Primitive shapes, especially SphereShape3D, are fast to check collisions against. ConvexPolygonShape3D and HeightMapShape3D are slower, and ConcavePolygonShape3D is the slowest.
Tutoriales
Propiedades
|
||
|
Métodos
Descripciones de Propiedades
float custom_solver_bias = 0.0 🔗
The shape's custom solver bias. Defines how much bodies react to enforce contact separation when this shape is involved.
When set to 0, the default value from ProjectSettings.physics/3d/solver/default_contact_bias is used.
Note: custom_solver_bias is only effective when using GodotPhysics3D. It has no effect when using Jolt Physics.
El margen de colisión de la forma. Esto no se usa en Godot Physics.
Los márgenes de colisión permiten que la detección de colisiones sea más eficiente al agregar una capa adicional alrededor de las formas. Los algoritmos de colisión son más costosos cuando los objetos se superponen en más de su margen, por lo que un valor más alto para los márgenes es mejor para el rendimiento, a costa de la precisión alrededor de los bordes, ya que los hace menos nítidos.
Descripciones de Métodos
Returns the ArrayMesh used to draw the debug collision for this Shape3D.