Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Doktan |
I want to freeze position of a rigidbody object, but i don’t know how
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Doktan |
I want to freeze position of a rigidbody object, but i don’t know how
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