My player is on the ground and copies the grounds normals. It does work perfect, But it snaps and i have no idea how i would go about smoothing it so it doesnt snap to copy the rotation.
this is the main line of code :
transform.rotation = Quaternion.FromToRotation(transform.up, hit.normal) * transform.rotation;
And yes im still using java, Im still learning C#. ( I cant use C# with this script )
Thanks again
↧