Ground Follow

ARC comes with a Ground Follow component, this component will keep the rotorcraft at a set height off the ground as it moves around and the ground lowers/ raises. Just add the compoent when building your prefab, or select the GameObject with the RotorcraftBehaviour component -> click 'Add Component' -> search and add 'RotorcraftGroundFollow'.

It is recommended to not allow the player to change the height of the rotorcraft when using the Ground Follow component.

Distance From Ground - How high you want the rotorcraft to stay above the ground.

Height Change Speed - This value controls how quickly the height will update, a higher value will move the rotorcraft up/down faster which results in following the ground height change more closely.

Descent Multiplier - For the occasions where the rotorcraft manages to get higher off the ground than the value set by 'Distance From Ground', this multiplier will bring the rotorcraft back down to the correct height faster.

Ground Check - The ground follow is achieved with a raycast, when stationary the raycast starts at the center of the rotorcraft and is shot downwards. This works great until the rotorcraft is moving, the rotation of the model can then collide with the ground before the raycast hits anything that would change the height. These two Vector 3 values are for you to set the position when going forward/ backwards.

Last updated