ProtoFlux:Grabbable Priority: Difference between revisions

From Resonite Wiki
Create Grabbable Priority ProtoFlux Node
 
fix example
 
Line 30: Line 30:
== Examples ==
== Examples ==
<gallery widths=480px heights=480px>
<gallery widths=480px heights=480px>
File:Protoflux_Grabbable_Priority.webp|An example of using Grabbable Priority to get the grab priority of a [[Component:DynamicBoneChain|DynamicBoneChain component]].
File:Protoflux_example_Grabbable_Priority.webp|An example of using Grabbable Priority to get the grab priority of a [[Component:DynamicBoneChain|DynamicBoneChain component]].
</gallery>
</gallery>


[[Category:ProtoFlux:Interaction:Grabbable]]
[[Category:ProtoFlux:Interaction:Grabbable]]

Latest revision as of 21:55, 3 March 2024

Grabbable Priority
Grabbable
*
Grabbable

Grabbable Priority is a ProtoFlux node that gets the priority of an IGrabbable.

Grab Priority Determines what gets grabbed if several grabbable objects are touching someone's grab sphere. The IGrabbable with the highest priority will be grabbed first. If the highest priority ties with another IGrabbable, it will grab both of those and ignore any lower priority IGrabbables.

Inputs

Grabbable (IGrabbable)

The grabbable that should be checked for a grabber that is grabbing it.

Outputs

* (Grabber)

The grab priority of the provided Grabbable (IGrabbable).

Examples