Skip to main content

Anchor Locomotion Data(锚点移动数据)

Anchor Locomotion Data(锚点移动数据)

Anchor Locomotion Data(锚点移动数据)节点检查锚点中用户的按键输入并返回相应值。

除非在 OnLocomotionUpdate (Call) 脉冲上下文期间读取,否则 Anchor Locomotion Data 输出的值将全部为默认值。

image.png

输出 (Outputs)

名称 (Name) 描述 (Description)
OnLocomotionUpdate (Call) 当锚点中的用户导致该节点的任何输出与之前的值相比发生变化时触发。
HasPrimary (bool) 锚点中的用户是否在其主手拥有摇杆。
HasSecondary (bool) 锚点中的用户是否在其非主手拥有摇杆。
PrimaryAxis (float2) 锚定用户在主手上的摇杆方向。
SecondaryAxis (float2) 锚定用户在非主手上的摇杆方向。
PrimaryAction (bool) 锚点中的用户是否按下了主手摇杆。
SecondaryAction (bool) 锚点中的用户是否按下了非主手摇杆。

全局 (Globals)

名称 (Name) 描述 (Description)
Anchor (AvatarAnchor) 要检查用户事件的锚点。

示例 (Examples)

下图展示了 Anchor Locomotion Data 节点的使用示例,其值通过多次写入 Data Model Store(数据模型存储)节点进行读取。

image.png