- Home /
How dose seting the velocity of a GameObject with Rigidbody.velocity work with unity 5 huminoid animation?
I'm working on project in where the player can run and jump on walls so I need the players forward jump velocity cannot be driven through animation otherwise the gravity would not work correctly so I am trying to set the velocity for jumping with playerRigidbody.velocity = Vector3(0,jumpHeight,jumpSpeed);
In which both jumpHeight
and jumpSpeed
are both 10 and playerRigidbody
is the variable for the player's rigidbody component. When this line gets called it only changes the player's local y velocity. Is there anything special that I need to do to make it also change the z velocity?
Comment