Hey there guys,
I created a little FSM which uses Raycast to shoot a bullet and create a decal/texture on impact (Left Mouse Button will trigger the shooting). So far so good. Everything works as expected (Thanks Lane).
My current problem is that the Bullet Decal (a texture on a plane mesh) doesn't orient itself properly to the normal direction of the meshes. Currently I stored two variables. hitNormal and hitPoint (Vector3).
I can't figure out what I need to do in order for the plane to orient properly. Any help would be appreciated.
Thomas P.