ColAndreas
#11

CA_RayCastLine from the object's position to a small distance below the object. If the function returns anything other than 0 then it's close to the ground.

If you want the object to align to the ground, use CA_RayCastLineAngle and use the angles retrieved for the object rotation.
Reply


Messages In This Thread
ColAndreas - by Max_Andolini - 05.06.2016, 10:38
Re: ColAndreas - by Max_Andolini - 05.06.2016, 16:38
Re: ColAndreas - by ilijap - 05.06.2016, 16:54
Re: ColAndreas - by Crayder - 05.06.2016, 17:03
Re: ColAndreas - by Gammix - 05.06.2016, 18:20
Re: ColAndreas - by Max_Andolini - 05.06.2016, 18:49
Re: ColAndreas - by CodeStyle175 - 05.06.2016, 20:52
Re: ColAndreas - by Crayder - 06.06.2016, 04:15
Re: ColAndreas - by bybaran - 06.06.2016, 06:11
Re: ColAndreas - by bybaran - 07.06.2016, 06:40
Re: ColAndreas - by Crayder - 07.06.2016, 07:19
Re: ColAndreas - by bybaran - 08.06.2016, 11:45
Re: ColAndreas - by bybaran - 09.06.2016, 05:54
Re: ColAndreas - by Max_Andolini - 12.06.2016, 09:14

Forum Jump:


Users browsing this thread: 1 Guest(s)