Using rb.velocity and Add Force on the same gameobject?
Hello everyone,
I'm making a game where the player can be moved with two joysticks. The left one uses rigidbody2D.velocity (so it set the velocity directly), and the right joystick will use AddForce. I know it seems weird but there is a reason, the right joystick will be a wind which pushes the player, so the main mechanic is to play with the wind force and the player velocity.
So the player movement is working well, but when i'm adding the Add Force, the Add Force doesn't act as it should be. There's no smooth acceleration and deceleration, it acts like velocity does. I guess it's because velocity and AddForce interfere together?
Does anyone know how it would be possible to combine these two? Thank you so much;
Your answer
Follow this Question
Related Questions
2D : How to overwrite rigidbody velocity when "skill" input pressed ??? 0 Answers
How to properly move a rigidbody character? 0 Answers
Trying to add force to an object... is this done correctly? 0 Answers
[2D] Can't AddForce to x but y works fine. 1 Answer
How do I ignore gravity when using Rigidbody and always have the same jump force? 1 Answer