How to freeze rigidbody2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Doktan

I want to freeze position of a rigidbody object, but i don’t know how

:bust_in_silhouette: Reply From: kidscancode

Set it to static mode:

mode = RigidBody2D.MODE_STATIC

See RigidBody2D.mode for more information.

Can this object intecart with another body in static mode?

Doktan | 2019-06-22 16:49

Did you read the linked documentation? “The body behaves like a StaticBody2D.” So yes, other objects will still collide with it.

kidscancode | 2019-06-22 16:57