Heya,
In my project I've created a turret that fires projectiles but I can only get the projectile
The turret does the following:
- The turret gets its position and stores it
- Using create object it loads a projectile prefab object
The projectile then does the following:
- Using Transform direction I store the direction
- Add Force on the Z axis, from position set from the Transform above, space set to self, force mode set to force
The projectile fires like expected as a I rotate the turret until a certain point. When Y is from 0-45 and 360-315 it fires on a correct angle. Beyond those points it starts firing from the opposite angle/side.
Ideally, the turret would load an object in 360 degress and the projectile would fire in that direction.
Does that make sense? Any ideas on to accomplish this?