class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNodeCanvasItemNode2DCollisionObject2DPhysicsBody2D StaticBody2D
A 2D physics body that can't be moved by external forces. When moved manually, it doesn't affect other bodies in its path.

A static 2D 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 RemoteTransform2D.

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

StaticBody2D 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).

float constant_angular_velocity<>():float

The body's constant angular velocity. This does not rotate the body, but affects touching bodies, as if it were rotating.

Vector2 constant_linear_velocity<>():Vector2

The body's constant linear velocity. This does not move the body, but affects touching bodies, as if it were moving.

PhysicsMaterial physics_material_override<>():PhysicsMaterial

The physics material override for the body.

If a material is assigned to this property, it will be used instead of any other physics material, such as an inherited one.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...