playMaker

Author Topic: How could I limit the movement of jump in air  (Read 1188 times)

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
How could I limit the movement of jump in air
« on: March 22, 2020, 03:12:42 AM »
Hi, I'm using a character controller and applying fake gravity into y.
Everything is working pretty well so far. So with movement its receiving gravity/jump in Y and axis movement to X and Z.

So in air I want x and z to keep their values on jump and then I want to apply any further axis input to adjust these values slightly not adjust to new values, if that makes sense.



So I want my input in air to adjust an established vector3 not set new values. How could I go about doing that?

Thanks,
josh

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How could I limit the movement of jump in air
« Reply #1 on: March 22, 2020, 06:07:15 AM »
Hi.
I am not sure how you setup is.

But maybe with parenting : move/jump parent then do adjust on child.

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 773
Re: How could I limit the movement of jump in air
« Reply #2 on: March 23, 2020, 08:10:09 AM »
Hi, I'm using a character controller and applying fake gravity into y.

How do you do this?

Quote
So in air I want x and z to keep their values on jump and then I want to apply any further axis input to adjust these values slightly not adjust to new values, if that makes sense.

Looks like you want to do a double jump function in a 3D game, where the second jump is not as powerful as the initial impulse.