Page 1 of 1
Height bellow the character controller
Posted: Sun Sep 16, 2012 6:41 am
by dimitrijejankov
Hi, well I was experimenting with the character controller in the demos, and I can't figure out how to get the height below the character to the nearest support... If somebody could help me out

Re: Height bellow the character controller
Posted: Sun Sep 16, 2012 3:58 pm
by Norbo
If you want to know the data about an existing support, CharacterController.SupportFinder.SupportData would do the trick.
If you want to search down for a surface to see how high the character is floating or something, then use a Space.RayCast pointing downward from the character. Use with a filter delegate to ignore the CharacterController.Body; otherwise, the ray cast would always hit the character.
Re: Height bellow the character controller
Posted: Mon Sep 17, 2012 1:53 am
by dimitrijejankov
Thx for the reply.. I will do this right away.. oh and your character controler is awesome thx for it
