#How can i apply the rolling animation for a ball?

1 messages · Page 1 of 1 (latest)

versed fulcrum
#

I wrote code for player movement (the ball), where it moves forward endlessly, and the player can move horizontally.

Could you help me with how to make the ball roll (or at least look like it’s rolling) while it’s moving?

I tried changing the rotation, but the ball started moving randomly, and sometimes it bounces on the ground and keeps bouncing

rocky fog
#

Why not use add force instead?
I think this is the absolute perfect example to demonstrate the difference and + you are already using a rigidbody

#

also if it bounces on the ground, there may be a chance you are applying downward force.
Try adding Debug.Log and see what the output forward / horizontal move (directions) are pointing at, make sure y stays zero as that's the up/down vectror.

sour plume
#

use rb.linearVelocity instead MovePosition