var pVec:b2Vec2 = new b2Vec2(bullet.body.GetPosition().x, bullet.body.GetPosition().y);
var impulse:b2Vec2 = new b2Vec2(car.GetPosition().x,car.GetPosition().y);
bullet.body.ApplyImpulse(impulse,pVec);
I want someone to explain how this does not shoot at the coordinates because I am at the end of my rope. I have lost my mind trying to make box2D shoot a bullet in a direction.
I don't understand how it is not possible to do this.
var impulse:b2Vec2 = new b2Vec2(car.GetPosition().x,car.GetPosition().y);
bullet.body.ApplyImpulse(impulse,pVec);
I want someone to explain how this does not shoot at the coordinates because I am at the end of my rope. I have lost my mind trying to make box2D shoot a bullet in a direction.
I don't understand how it is not possible to do this.