Getting a Missile Properly Positioned

Ok so, I have been working on a Car Combat game and I have been working on making Missiles Fire out of the front of the car. The code of the missiles is fine but the Car replicates the missiles in order to shoot them. My issue is that sometimes the missiles get stuck on the car or they don’t start in the right position. I have made it that the missiles ignore the car the player is driving as well. The video below is what I am talking about.

1 Like

for the colliding issues you can use collision groups to make the missile non-collidable with the car and its descendants

1 Like

It seems as though your missiles are being planted the moment you fire, but do not have the same velocity as the car in motion, and are thus left behind as you drive after you fire.

In order to solve this, I would recommend you attach the missiles to the car before they are released. If you want to prevent them from exploding, add a dormant state so the missiles don’t explode when you don’t want them to, or like RomeoEDD said, use collision groups to handle this.

1 Like

I have already attempted that. In the video the Missiles fly through the car.

Alright I will give that a try. I will weld them to the car first.

1 Like