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
    Setterset_bounce(value)
    Getterget_bounce()

    The body’s bounciness. Values range from (no bounce) to (full bounciness).



    Setterset_constant_linear_velocity(value)
    Getterget_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).


    Setterset_physics_material_override(value)
    Getterget_physics_material_override()