Firing bullet causes feedback on main Actor

Hi again guys n gals

I have a ship in my game that uses gravity, with thrusters to fight against the gravity and works perfectly how i want it to.

However, when i fire a projectile from my ship, it pushes an impulse back onto my ship making it rotate.
How can i stop this physics feedback please?

I basically have a scene object in my ship blueprint that is just above the nose cone of my ship, this is where the bullet spawns from so not to cause an overlap/hit event. but the projectiles impulse is feeding back.

Thanks
Stewart

Hey @High500!

Can you show your code for your projectile? We may be able to add an exemption through manipulation of collision channels, or it’s possible we can just change you over to a different kind of propulsion :slight_smile:

the projectile basically adds an impulse set as a velocity change

You question answered without even being specific. I set it to ignore physics body!
Thanks!

Is this projectile spawned through the ship’s code? I’m concerned that it may be that the ship has become the owner.

What you COULD do is… If it’s a single player game:

Create 2 new collision channels in project settings. PlayerShip and EnemyShip. Set the defaults to what their settings CURRENTLY are, I’m assuming pawn. Just copy those checkboxes for ignore, block, and overlap.

Then, you’ll give a “Tag” to the ship blueprints: Enemy and Player.

Then, upon projectile spawn, getOwner (or it might be getParent. It’s something like that.)

Drag off of that, use “Actor Has Tag” to check for “Player” with a branch. If true, Set Collision Channel Response on the projectile to PlayerShip, ignore.

Off of false, do it again for the “Enemy” tag.

If you have random projectiles to dodge, just proceed off of false. Otherwise, plug both true lines directly into add impulse.

Here’s hoping that works! Give us an update once you give it a shot! :slight_smile:

Thanks for the extra input. What I did worked, but its possible i could run into other issues later on, but there are no other ships just ground actors. That said it may still pose an issue, so i will keep this information and have a play with it once i start adding in the other actors.

Thanks again!

Sorry! I was in the zone trying to lay things out! I didn’t realize you had figured it out :stuck_out_tongue:

its fine thank you, but like i say, i may hit a problem so i will keep this as backup :rofl:

If you do, we’d prefer you make a new topic! So we can keep things as searchable and informative as possible. Feel free to tag me if you’d like me to take a look at it with priority! :slight_smile: