Quantcast
Channel: Latest Questions by Griffo
Viewing all articles
Browse latest Browse all 94

Orientate a quad to the ray cast hit.normal

$
0
0
Hi, what I'm trying to do is when the ray cast id fired I want to place a quad with a texture on it at the hit.point so for testing I tried Instantiate (prefab, hit.point, Quaternion.LookRotation(hit.normal)); So when the ray cast is fired the quad is placed at the hit.point but the quad is always 180 degrees the wrong way to see the texture?

Viewing all articles
Browse latest Browse all 94

Trending Articles



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