ProtoFlux:Anchor Locomotion Data: Difference between revisions

From Resonite Wiki
Create Anchor Locomotion Data that is totally not finished
 
Finally finish this page
Line 21: Line 21:


The values for Anchor Locomotion Data outputs will all be default unless read during the OnLocomotionUpdate ([[Impulses|Call]]) impulse [[Impulses#Contexts|context]].
The values for Anchor Locomotion Data outputs will all be default unless read during the OnLocomotionUpdate ([[Impulses|Call]]) impulse [[Impulses#Contexts|context]].
== Outputs ==
=== OnLocomotionUpdate ([[Impulses|Call]]) ===
On locomotion update only fires if the user in the anchor is causing changes to any the outputs of this node compared to the previous value.
=== HasPrimary ([[Type:Bool|bool]]) ===
Whether the user in the anchor has access to a joystick in their dominant hand
=== HasSecondary ([[Type:Bool|bool]]) ===
Whether the user in the anchor has access to a joystick in their non dominant hand
=== PrimaryAxis ([[Type:Float2|float2]]) ===
The anchored user's joystick direction on the dominant hand.
=== SecondaryAxis ([[Type:Float2|float2]]) ===
The anchored user's joystick direction on the non dominant hand.
=== PrimaryAction ([[Type:Bool|bool]]) ===
Whether the user in the anchor has pressed in their dominant hand joystick
=== SecondaryAction ([[Type:Bool|bool]]) ===
Whether the user in the anchor has pressed in their non dominant hand joystick
== Globals ==
=== Anchor ([[Type:AvatarAnchor|AvatarAnchor]]) ===
The anchor to check for a user to check for events on.
== Examples ==
<gallery widths=480px heights=480px>
File:Protoflux_example_Anchor_Locomotion_Data.png|Example of an Anchor Locomotion Data node having it's value read via multiple writes to [[ProtoFlux:Data Model Store|Data Model Store]] </gallery>


[[Category:ProtoFlux:Stubs]]
[[Category:ProtoFlux:Stubs]]

Revision as of 06:32, 23 February 2024

Anchor Locomotion Data
OnLocomotionUpdate
HasPrimary
HasSecondary
PrimaryAxis
SecondaryAxis
PrimaryAction
SecondaryAction
Anchor
null
Anchors

Anchor Locomotion Data is a ProtoFlux node that checks the button presses for someone in an anchor and returns the values

The values for Anchor Locomotion Data outputs will all be default unless read during the OnLocomotionUpdate (Call) impulse context.

Outputs

OnLocomotionUpdate (Call)

On locomotion update only fires if the user in the anchor is causing changes to any the outputs of this node compared to the previous value.

HasPrimary (bool)

Whether the user in the anchor has access to a joystick in their dominant hand

HasSecondary (bool)

Whether the user in the anchor has access to a joystick in their non dominant hand

PrimaryAxis (float2)

The anchored user's joystick direction on the dominant hand.

SecondaryAxis (float2)

The anchored user's joystick direction on the non dominant hand.

PrimaryAction (bool)

Whether the user in the anchor has pressed in their dominant hand joystick

SecondaryAction (bool)

Whether the user in the anchor has pressed in their non dominant hand joystick

Globals

Anchor (AvatarAnchor)

The anchor to check for a user to check for events on.

Examples