# Simulating gravity when moving up or down an incline

**URL:** <https://forums.unrealengine.com/t/simulating-gravity-when-moving-up-or-down-an-incline/260378>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 11, 2021, 8:14am UTC](https://forums.unrealengine.com/t/simulating-gravity-when-moving-up-or-down-an-incline/260378 "2021-11-11T08:14:09Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 12, 2021, 9:27am UTC](https://forums.unrealengine.com/t/simulating-gravity-when-moving-up-or-down-an-incline/260378/10 "2021-11-12T09:27:42Z")

</div>

> just straight vector propulsion

Torque is for adding angular momentum - rotating. Add Force / Impulse is linear - direction. There’s a difference between the 2 nodes:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/e/ced087c14e8759a8e99ca283c2937ac43b9f42e4.png)

Add Impulse is generally used as a singular event if you want to transfer that much force in one go. Kick a ball, a projectile connects with target, start a ragdoll.

**_Add Force_ would be the propulsion thruster.**

* * *

There is also this component:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/9/79c86077bf6921d8a7374010c8d9f81b77274836.jpeg)

Which can simplify things if you need several points at which forces are applied; also comes in node flavour:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/9/e9264727a655360a32afc8c4cc4479ebcb1d4533.png)

* * *

On top of that, you can _override_ physics with Set Linear Velocity / Angular nodes. This will disregard what the physics is currently doing and produce a new traverse velocity / angular (but they can be made additive, too):

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/8/48b011a1003ceff8faf2825812547dab9cbafbf7.png)

The above examples work with physics.

* * *

Add World Offset, on the other hand, moves an actor from A → B instantaneously using a delta and has nothing to do with physics. But you can apply a small Add World Offset value every frame. And its Sweep can be used to detect collision (not without limitations, though; it’s by no means perfect out of the box):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/c/cc1d3bd58e76c87fbddddc195f0391d9f3ac7259.png)

Still, no physics here.

---

_[View the full topic](https://forums.unrealengine.com/t/simulating-gravity-when-moving-up-or-down-an-incline/260378)._
