Hello
Im trying for hours to find out how my Helicopter could shoot in the direction it is pointing to.
I tried to use Dark Physics Raycasting but im getting more and more confused. I also searched alot but i do get the idea behind it but when Im trying to code it I realize that still nothing has changed.
The Idea is:
The Helicopter got a Gun an when I click it shoots. Until here everything works fine. BUT what im trying to rotate the Helicopter and shoot afterwards it still shoots strait.
I thought something like this:
vall=phy ray cast all shapes(object position x(1),object position y(1),object position z(1),0,0,1)
vall=PHY GET RAY CAST OBJECT()
x=PHY GET RAY CAST HIT POINT X()
y=PHY GET RAY CAST HIT POINT Y()
z=PHY GET RAY CAST HIT POINT Z()
position object 6, x, y, z
Object 1 is my Helicopter and 6 is a Plain with Dusteffect on it.