Reactive Rider External Targeting:

What is it?

External Targeting sets the Head LookAt IK target to a specific transform and twists the chest to face the target.

Settings:

Chest Twist Speed

The rate at which the chest rotates to face the target.

Max Chest Twist

The maximum degree the chest will twist to face the object relative to the saddle when hand IK is disabled. Actual character rotation will be about half this value. For example: if the Max Chest Twist is set to 180 degrees, the maximum character rotation will be about 90 degrees.

Max Chest Twist With Hand IK Enabled

The maximum degree the chest will twist to face the object relative to the saddle when hand IK is enabled. Actual character rotation will be about half this value. For example: if the Max Chest Twist With Hand IK Enabled is set to 80 degrees, the maximum character rotation will be about 40 degrees.

Setting a Target:

External Targets are set using the following method:

ReactiveRider.SetExternalTarget(Transform target, float yPositionOffset);

 

 

 

 

 

 

 

 

 

 

 

 

Setting the Target to null will disable this feature.

Example:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SetExternalTarget : MonoBehaviour
{

    [SerializeField] ReactiveRider reactiveRider;
    [SerializeField] Transform target;
    [SerializeField] float yPositionOffest = 0;

    // Start is called before the first frame update
    void Start()
    {
        reactiveRider.SetExternalTarget(target,yPositionOffest);
    }
}

*Hand IK Enabled

*Hand IK Disabled