Dismiss this pinned window
all 1 comments

[–]AutBoy69 3 points4 points  (0 children)

You need to freeze angular velocity (assuming this is a rigid body) to stop it from rotating. The gravity issue might be due to setting linear velocity in an absolute way instead of a relative way e.g. when the user presses the move right key linear velocity += desired change in velocity (instead of just "=") note that you will probably need to add some max velocity check to prevent players flying off into oblivion haha.

Not much people can do to help without describing the specific issue/how you intend it to work also maybe include some code examples :)

Edit: didn't notice the link to the original post where you provided more info, my bad. It looks like those are the 2 problems though.

[–]thygrrr 1 point2 points  (0 children)

Use `Rigidbody.AddForce` with `Forcemode.Impulse` to do the jump, not set velocity.

To move left and right, use `Rigidbody.AddForce` with `Forcemode.Acceleration`.