Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nclshel on December 08, 2015, 08:34:40 AM

Title: Controller is grounded for 2D object
Post by: nclshel on December 08, 2015, 08:34:40 AM
Hello, in the first sorry for my english, I'm Swiss so I speak french.
My problem is that the action Controller is grounded need a character controller but the character controller is only for 3D object and I do a 2D project so I can't use it.
Do you know another ways to check if my character is grounded ?
Best regards.
nclshel.
Title: Re: Controller is grounded for 2D object
Post by: KellyRay on December 08, 2015, 02:24:34 PM
You could send a raycast or a line cast down just passed your characters feet. Then use the hit event to store whether or not an isGrounded bool variable is true or not.