Fake Gravity?

Im making a shooter game in space and i want my bullets to go towards a planet instead of down

I already set the gravity to 0 so the bullets don’t go down but i want my bullets to slowly go towards the planet.

Thanks in advance.

if you’re using blueprints then you would use the ‘get unit direction vector’ node to get the direction from your bullet to your planet. then you would apply a force on the bullet toward that direction.

This is what i did but i still don’t know if im doing it right and i dont know what to put in the object pin.

Try multiplying the result of the Get Unit Direction Vector node by a float, this float would be your “gravity strength”.

‘other actor’ goes into ‘object’.