RigidBody2D reset position to initial value

Godot Version

4.3

Question

Hello, I wanted test something out and instead found another problem…

There are 2 scenes…1 rigidbody2d and other is “main” scene that “initialize” few given rigidbody scenes

RigidBody have initial position set as -50,-50…

When “enabling” rigidbody, I set global_position of each rigidbody to different value

Before “movement” is applied, rigidbody have correct global_position, and after impulse is applied…global_position is “reset” to initial rigidbody scene value(-50,-50) and it moves “correctly” from “wrong” starting position…

Gravity/Damp etc. are “turned off”

And except few rigidbodies added to node2d(parent/main scene), there is nothing…

Why is global_position changed back to “initial” value for no obvious reason?

A similar question was answered here Having trouble placing a rigidbody_2d object in a specific coordinate - #2 by mrcdk

Thanks for answer…does it work similar for characterbody aswell?

No, CharacterBody2D does not need this as it’s not directly controlled by the physics world.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.