#how do i make rotations not slippery
1 messages · Page 1 of 1 (latest)
Hope that helps
still doesnt do anything
this is the rotation script if that helps
float verInput = SimpleInput.GetAxisRaw("Vertical");
Vector2 movedir = new Vector2(horInput, verInput);
float inputmagnitude = Mathf.Clamp01(movedir.magnitude);
movedir.Normalize();
if (movedir != Vector2.zero)
{
Quaternion toRotation = Quaternion.LookRotation(Vector3.forward, movedir);
playerTrans.transform.rotation = Quaternion.RotateTowards(transform.rotation, toRotation, spinspeed * Time.deltaTime);
}```
So you dont want it to be able to rotate in the air is that correct?
no i mean when its on the ground and it rotates it doesnt act like u think it should it just rotates
could you send the entire code because im getting errors everywhere
i dont think it has anything to do with the code
wait ill record another vid to explain better
this is the script for rotation
see how its not rolling around when it rotates its acting weird
it doesnt have anything to do with the pogo script itself so i removed it to explain better
What is it that you want it to do, to me it looks like its working fine?