Class CharacterControllerDriver
Drives a CharacterController height upon locomotion events of a LocomotionProvider.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public class CharacterControllerDriver : MonoBehaviour
Properties
characterController
(Read Only) The CharacterController that this class drives.
Declaration
protected CharacterController characterController { get; }
Property Value
Type | Description |
---|---|
CharacterController |
locomotionProvider
The LocomotionProvider object to listen to.
Declaration
public LocomotionProvider locomotionProvider { get; set; }
Property Value
Type | Description |
---|---|
LocomotionProvider |
maxHeight
The maximum height of the character's capsule that will be set by this behavior.
Declaration
public float maxHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |
See Also
minHeight
The minimum height of the character's capsule that will be set by this behavior.
Declaration
public float minHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |
See Also
xrRig
(Read Only) The XRRig used for driving the CharacterController.
Declaration
protected XRRig xrRig { get; }
Property Value
Type | Description |
---|---|
XRRig |
Methods
Awake()
Declaration
protected void Awake()
OnDisable()
Declaration
protected void OnDisable()
OnEnable()
Declaration
protected void OnEnable()
Start()
Declaration
protected void Start()
UpdateCharacterController()
Declaration
protected virtual void UpdateCharacterController()