Announcement

Collapse
No announcement yet.

Artificial gravity problem.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Artificial gravity problem.

    Hello ! I am trying to make an artificial gravity to make my car stick to sideways and upside down roads.

    The current logic for my blueprint is currently (in reference to visual support provided down):

    If Space is pressed, check if gravity for the vehicle mesh is on, if it is, disable it, if it's not, enable it.

    There's also an OnTick event that does the following: If gravity is off, set physics linear velocity of -9.8 on the z axis, add to current.

    But the problem is the following: The gravity is not pointed to the mesh's z axis but to the world's.

    Is there any way I can fix that ?

    P.S. It is my first blueprint, I have never done any prog before.

    #2
    you would be using vehicles up actor for the direction, multiply it by 9.8 or what ever you want the magnitude to be.
    default engine systems however are not designed for custom gravity in mind, so don't expect amazing results.
    Blueprint specialist
    Find me at Twitter

    Comment

    Working...
    X