I have a player running around the screen and need him to shoot. I have tested several methods but the one I want to persue is to use either linepick or meshesintersect so I can have a target projected onto objects in the distance.
Camerapick works to a point but can give false results when the man is in certain areas as the target image drawn onscreen appears behind him and camerapick "shoots" where he shouldn`t.
I have used types for bullets but I do not get the effect I want...
Anyway heres the question
If I use linepick how can I get it to rotate with the character. It seems that parenting it etc just means it takes the absolute X,Y,Z and ignores the rotational angle.
So I thougt meshesintersect might work, but how to I get the value of the point at which they intersect so I can draw my sprite here.
Any help would be great...
Camerapick works to a point but can give false results when the man is in certain areas as the target image drawn onscreen appears behind him and camerapick "shoots" where he shouldn`t.
I have used types for bullets but I do not get the effect I want...
Anyway heres the question
If I use linepick how can I get it to rotate with the character. It seems that parenting it etc just means it takes the absolute X,Y,Z and ignores the rotational angle.
So I thougt meshesintersect might work, but how to I get the value of the point at which they intersect so I can draw my sprite here.
Any help would be great...