hi
i have a little issue.
i need to calculate the x/y of a certain point to know where to create a bullet.
so lets say i know the length of the hand and the length of the gun then i have the angle of the hand and with sin/cos i can get x/y but the gun is not in the same line with the hand its a little bit above so what i get is the bullet is created not where the gun is it is created with the 0 line of the hand.
here is a image to explain my problem:
when angle is 0 i can just say create the bullet with some pixels above the zero line but when angle changes how can i calculate exact x/y of the barrel of the gun?
thanx, ilan
i have a little issue.
i need to calculate the x/y of a certain point to know where to create a bullet.
so lets say i know the length of the hand and the length of the gun then i have the angle of the hand and with sin/cos i can get x/y but the gun is not in the same line with the hand its a little bit above so what i get is the bullet is created not where the gun is it is created with the 0 line of the hand.
here is a image to explain my problem:
when angle is 0 i can just say create the bullet with some pixels above the zero line but when angle changes how can i calculate exact x/y of the barrel of the gun?
thanx, ilan