Can i get a normal from a mesh that a particle has collided with

0 like 0 dislike
When my particles collide with a mesh the collision works, however, is it possible to get the normal of the face/surface from the object that the particle collided with? Need it to work out what was the particle should be facing.
asked Aug 9 by Jamesking96 (450 points)

1 Answer

0 like 0 dislike


You can take a look at this page:
It will show you how to use the 'scene.intersect' script function, basically it will return you a float4 containing the normal of the hitted triangle, and the hit distance. 


answered Aug 10 by Maxime (5,100 points)