Question by
Alwass · Apr 29, 2021 at 10:13 AM ·
rigidbody2d gamelocalpositionmovepositionlocalspace
RigidBody2D.MovePosition - Move local position.
I have a 2D faux gravity planet and player game, I want a way to move the player around the planet smoothly using RigidBody2D.MovePosition on its local x axis. At the moment I'm using rb.AddRelativeForce(Vector2.right movement playerSpeed) but AddRelativeForce is difficult to stop due to the moment from physics, ideally want the player to come to a stop when the right button is released.
Help is much appreciated.
Comment
Your answer
Follow this Question
Related Questions
All colliders not longer working 0 Answers
Rigidbody local position constraints 2 Answers
Control speed of a rigidbody that move to a fixed distance 2 Answers
How to: rigidbody.MovePosition to player's position 2 Answers
Moving a rigidbody in local space with transform.TransformPoint has unexpected results. 1 Answer