[Tooltip("Use position tracking (if available)")]
public bool trackPosition = false;默认trackPosition为false即为3Dof模式,当开发者在Inpector的面板中勾选trackPosition为true时即为6Dof模式。所谓的6Dof模式是指可以在空间位置上控制头部移动。
[Tooltip("Track position conversion from meters")]
public float trackPositionScale = 1;trackPositionScale变量是指6Dof模式下头部移动值的大小。当计算空间的头部位置时,会将该变量乘以底层返回的头部空间位置信息数据。
[Tooltip("Height of the eyes from base of head")]
public float headHeight = 0.0750f;headHeight为头部相对于根节点Y轴的位置,在运行过程中EyeLeft和EyeRight的y坐标值。如果根节点在世界坐标原点,则eyeleft和eyeright则会相对于根节点向Y轴偏移headHeight个单位。
[Tooltip("Depth of the eyes from center of head")]
public float headDepth = 0.0805f;headDepth为头部相对于根节点Z轴的位置,同headHeight的定义类似,如果根节点在世界坐标原点,则eyeleft和eyeright则会相对于根节点向Z轴偏移headDepth个单位。