playMaker

Author Topic: I am creating a character controller, but difficult to add a jump[SOLVED]  (Read 1309 times)

kimj224

  • Playmaker Newbie
  • *
  • Posts: 6
Hello.

I am creating a character controller, but it is a little difficult to add a jump function.

I am using Rigidbody and Capsule Collider, and I do not know how to make a way to check my player is Grounded before I jump. I created a trigger box at the foot of my player and reported a tutorial where Grounded is checked whenever he touches the ground. However, this method can not be used because my player has problems with Collider if I use IK.

In addition to Grounded Check,
Is there any way to get a jump key once before closing to the ground?

I am very new to using PlayMaker.
Anyone will be grateful for any help.
« Last Edit: April 12, 2017, 02:36:32 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Hi,

 you can do two different things:

-- have triggers that will tell you if your character is triggering on a floor
-- fire a raycast downwards and if it hits a floor within a certain distance ( say 1 unity, I don't know your world scale), then you know character is grounded.

Let me know if you still struggle with this.

 Bye,

 Jean

kimj224

  • Playmaker Newbie
  • *
  • Posts: 6
Hey.

Thank you. I solved this problem by creating a trigger on the floor as you told me.

I am very happy to solve the problem very quickly thanks to you. Thank you so much for solving my problem once again!  ;D