Announcement

Collapse
No announcement yet.

Movement Component Gravity locked

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

    Movement Component Gravity locked

    Hi,

    Im using a common movement component to create a skate game. Everything seems to be correctly setup, except when i add velocity to z, or just drive off a wall the gravity stays locked on z, so it basically forgets the forward speed.

    How do i enable the gravity on x axis?

    #2
    Gravity should only be applied to the Z axis in a negative direction for a real world, pulling you down. It should not have any effect on your x or y directions; gravity is what is pulling you back to the ground. If your forward speed is being forgot, you may be setting it somewhere else by accident. When you apply velocity to z, are you setting your x and y to your current velocity. If you use "get velocity" and add the z velocity you want and then set the x, y, and z to "set velocity" in your characterMovement it should work.

    Comment


      #3
      Thanks for the reply.

      Note that this is not only when i add velocity, but also when i just drive off a wall. So it seems that something is set that when gravity is applied, the forward speed is forgotten. However ive tried almost any setting and nothing realy changes.

      Comment

      Working...
      X