I know this has probably been asked before but I can't seem to find just the right solution.
I'm firing objects which upon a collision with the level mesh I intend to mark it with a sprite (i.e. bullet hole). The problem I have is that I can gain the collision normals no problem but I just can't seem to get my head around the math required to rotate the sprite for the bullet hole to match that of the surface being hit.
The collision normals do seem to be being reported correctly (naturally) but I think my 3D maths is just not up to the task. If someone could briefly explain, possibly with some code it would really help :)
Thanks
I'm firing objects which upon a collision with the level mesh I intend to mark it with a sprite (i.e. bullet hole). The problem I have is that I can gain the collision normals no problem but I just can't seem to get my head around the math required to rotate the sprite for the bullet hole to match that of the surface being hit.
The collision normals do seem to be being reported correctly (naturally) but I think my 3D maths is just not up to the task. If someone could briefly explain, possibly with some code it would really help :)
Thanks