Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Smooth follow hit.normal>?

$
0
0
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

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>