Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kimj224 on April 11, 2017, 04:13:59 AM

Title: I am creating a character controller, but difficult to add a jump[SOLVED]
Post by: kimj224 on April 11, 2017, 04:13:59 AM
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.
Title: Re: I am creating a character controller, but it is a little difficult to add a jump
Post by: jeanfabre on April 11, 2017, 05:49:39 AM
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
Title: Re: I am creating a character controller, but it is a little difficult to add a jump
Post by: kimj224 on April 11, 2017, 06:44:51 PM
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