# Fake Gravity?

**URL:** <https://forums.unrealengine.com/t/fake-gravity/436085>\
**Category:** World Creation\
**Tags:** gravity, space, bullet, unreal-engine, UE4, question\
**Created:** [October 21, 2018, 6:56pm UTC](https://forums.unrealengine.com/t/fake-gravity/436085 "2018-10-21T18:56:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Logz\_123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Logz\_123](https://forums.unrealengine.com/u/Logz_123)\
**Post date:** [October 21, 2018, 6:56pm UTC](https://forums.unrealengine.com/t/fake-gravity/436085/1 "2018-10-21T18:56:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IndieGameCove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IndieGameCove](https://forums.unrealengine.com/u/IndieGameCove)\
**Post date:** [October 22, 2018, 3:58am UTC](https://forums.unrealengine.com/t/fake-gravity/436085/2 "2018-10-22T03:58:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Logz\_123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Logz\_123](https://forums.unrealengine.com/u/Logz_123)\
**Post date:** [October 22, 2018, 10:43am UTC](https://forums.unrealengine.com/t/fake-gravity/436085/3 "2018-10-22T10:43:22Z")

</div>

![257290-gravity.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/5/4f5599da18e6634763856c105635f0f8a00dd4eb.png)

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.

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [October 22, 2018, 3:35pm UTC](https://forums.unrealengine.com/t/fake-gravity/436085/4 "2018-10-22T15:35:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![IndieGameCove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IndieGameCove](https://forums.unrealengine.com/u/IndieGameCove)\
**Post date:** [October 22, 2018, 5:40pm UTC](https://forums.unrealengine.com/t/fake-gravity/436085/5 "2018-10-22T17:40:16Z")

</div>

‘other actor’ goes into ‘object’.
