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

0 like 0 dislike
33 views
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 (660 points)

1 Answer

0 like 0 dislike

Hello,

You can take a look at this page: https://wiki.popcornfx.com/index.php/Particle_tutorial_manual_scene_intersect
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. 

Cheers,

answered Aug 10 by Maxime (5,100 points)
...