playMaker

Author Topic: Controller is grounded for 2D object  (Read 1370 times)

nclshel

  • Playmaker Newbie
  • *
  • Posts: 1
Controller is grounded for 2D object
« 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.

KellyRay

  • Full Member
  • ***
  • Posts: 170
Re: Controller is grounded for 2D object
« Reply #1 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.