- _reloadPhysicsCharacteristics
void _reloadPhysicsCharacteristics()
- getBounce
double getBounce()
- getConstantAngularVelocity
double getConstantAngularVelocity()
- getConstantLinearVelocity
Vector2 getConstantLinearVelocity()
- getFriction
double getFriction()
- getPhysicsMaterialOverride
Ref!PhysicsMaterial getPhysicsMaterialOverride()
- opAssign
StaticBody2D opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(StaticBody2D other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setBounce
void setBounce(double bounce)
- setConstantAngularVelocity
void setConstantAngularVelocity(double vel)
- setConstantLinearVelocity
void setConstantLinearVelocity(Vector2 vel)
- setFriction
void setFriction(double friction)
- setPhysicsMaterialOverride
void setPhysicsMaterialOverride(PhysicsMaterial physics_material_override)
Static body for 2D Physics.
A StaticBody2D is a body that is not intended to move. It is ideal for implementing objects in the environment, such as walls or platforms. 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).