StaticBody2D
Category: Core
Static body for 2D Physics.
Additionally, a constant linear or angular velocity can be set for the static body, which will affect colliding bodies as if it were moving (for example, a conveyor belt).
- bounce
Setter | set_bounce(value) |
Getter | get_bounce() |
The body’s bounciness. Values range from (no bounce) to (full bounciness).
- Vector2 constant_linear_velocity
Setter | set_constant_linear_velocity(value) |
Getter | get_constant_linear_velocity() |
Constant linear velocity for the body. This does not move the body, but affects colliding bodies, as if it were moving.
- friction
The body’s friction. Values range from (no friction) to (full friction).
Setter | set_physics_material_override(value) |
Getter | get_physics_material_override() |