skip to Main Content

Adding Impulse to an Actor

The difference between the Force and Impulse is that Impulse is recommended for one time instant burst. To apply an impulse to an Actor, follow up this tutorial but in the logic of the MoveChosenActor type in the following code:

PS: I’m aware of the fact that we are not adding a force in this case, but the parameter in the AddImpulse function has the same name with the previous tutorial so the code can be consistent

This Post Has 2 Comments

  1. Should the RootComponent always be a static mesh?

    I was thinking about making a thruster on my player character but his root is a sphere collision.

    1. Whenever you want to do physics choose a physics volume (ie Box / Sphere or any other type of collision component) as root component.

      -Orfeas

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back To Top