- Home /
Question by
sharktornado1 · Jan 16, 2020 at 03:52 PM ·
rigidbodyrigidbody.addforcemovetowards
MoveTowards not working well with Rigidbody jumping mechanics
In my game I used movetowards to go left and right, i then attached rigibody to the character and added jumpforce to make it jump, however the game is just glitching out now and is very jittery. I think its because movetowards is called every frame which interferes with the rigid body physics.
Comment
Answer by lgarczyn · Jan 17, 2020 at 01:26 AM
Please do not use MoveTowards, or any transform modifications on a rigidbody.
Simply set the velocity to your input times your speed.
Your answer
Follow this Question
Related Questions
Freeze Position + collision? 0 Answers
When Movement speed Change once it never change again 1 Answer
Make a object move forwards 1 Answer
Have player fall down with platform? 0 Answers
Smooth dashing issues 0 Answers