⏺️

Enable Trigger

Nodes to allow or forbid grabbing of objects.

image

Behavior

✔️
Filtered List

This node is Filtered List node. It is similar to Selection nodes, but does not have selection amount parameter. The Selection Mode is used to set objects that can be grabbed. For object to be eligible for grabbing, it has to have a Rigidbody.

image

There is always a Target Slot parameter - this can be any collider that has Is Trigger checked. It is recommended to add some visual indication for the slot (outline of an object, ghost, transparent zone, etc). Slot’s GameObject can be disabled, the node will enable it when needed.

The way grabbing system works is that every grabbable object has a list of Requesters, that is, objects that need this item to be grabbable. It can be a slot, trigger or the object itself (in case of free grab). Every time a slot node is called - it adds itself to the list of requesters for the object. Any object can be grabbed as long as the amount of requesters for it is higher than 0. The moment this stops being the case (for example - all slots are slotted) user will drop the item if it is in their hands and it stops being grabbable

Once any of the filtered objects touch the trigger, Slotted is called. If Unique Outs are enabled, they will be called first. This node doesn’t grab anything by itself, only detects when object is inside, so you need to add another requester for it, otherwise, if it is not an inventory object, it will fly away the moment this node is done working.

Usages

Here is an example to pick up a multimeter, measure the voltage, and put it back

image