- Home /
Added force to rigid body, but wont move same speed as horizontal speed... if rotating
Vector 3 newVelocity =moveVector * Speed;
rb.velocity = newVelocity;
Debug.Log(newVelocity + " " + rb.velocity);
transform.rotation = Quaternion.LookRotation (inputVec);
If I remove the last line of code. The character moves up down left or right at the same speed, but when I add the rotation, when I move left or right, it works fine, but when I move up or down the character goes about 1/5th the speed but the velocity still prints the same.
Answer by mikeNspired · May 23, 2018 at 04:50 AM
Apparently this only happens in Unity 2018.... and happens on random plays. What a weird bug... Click play, works fine, stop and click play again.... broken.
Your answer
Follow this Question
Related Questions
Setting a RigidBody's velocity messes with my custom gravity, not sure how to proceed. 0 Answers
How would you code a Wind script? 1 Answer
How do I stop my Player (controlled by RigidBody) stopping after jumping? 0 Answers
VR Sword Physics, how to add force or velocity to the sword for impact when it hits an object 1 Answer
How to limit only the Rigidbody.velocity from player input? 1 Answer