Sorry for the weird/unsuggesting title but here’s the deal:
When I create a movement vector and then apply it to my character’s rb2d, the number isn’t round.
float move = 0.8;
Vector3 targetVelocity = new Vector2(move * 10f, m_Rigidbody2D.velocity.y);
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity, ref
m_Velocity, m_MovementSmoothing);
Debug.Log(m_Rigidbody2D.velocity.x);//8.066598
I would like the number in the Debug.Log to come out as 8, but without having to use Mathf.Round.
What part of my code makes the velocity.x not be a round number?