StaticBody3D

Hereda: PhysicsBody3D < CollisionObject3D < Node3D < Node < Object

Heredado por: AnimatableBody3D

Un cuerpo físico 3D que no puede ser movido por fuerzas externas. Cuando se mueve manualmente, no afecta a otros cuerpos en su camino.

Descripción

A static 3D physics body. It can't be moved by external forces or contacts, but can be moved manually by other means such as code, AnimationMixers (with AnimationMixer.callback_mode_process set to AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_PHYSICS), and RemoteTransform3D.

When StaticBody3D is moved, it is teleported to its new position without affecting other physics bodies in its path. If this is not desired, use AnimatableBody3D instead.

StaticBody3D is useful for completely static objects like floors and walls, as well as moving surfaces like conveyor belts and circular revolving platforms (by using constant_linear_velocity and constant_angular_velocity).

Tutoriales

Propiedades

Vector3

constant_angular_velocity

Vector3(0, 0, 0)

Vector3

constant_linear_velocity

Vector3(0, 0, 0)

PhysicsMaterial

physics_material_override


Descripciones de Propiedades

Vector3 constant_angular_velocity = Vector3(0, 0, 0) 🔗

  • void set_constant_angular_velocity(value: Vector3)

  • Vector3 get_constant_angular_velocity()

La velocidad angular constante del cuerpo. Esto no rota el cuerpo, pero afecta a los cuerpos que toca, como si estuviera rotando.


Vector3 constant_linear_velocity = Vector3(0, 0, 0) 🔗

  • void set_constant_linear_velocity(value: Vector3)

  • Vector3 get_constant_linear_velocity()

La velocidad lineal constante del cuerpo. Esto no mueve el cuerpo, pero afecta a los cuerpos que toca, como si se estuviera moviendo.


PhysicsMaterial physics_material_override 🔗

El material de la física se sobrescribe para el cuerpo.

Si se asigna un material a esta propiedad, se utilizará en lugar de cualquier otro material de física, como por ejemplo uno heredado.