diff --git a/NEOSPlus/Logix/Interaction/Grabbable/FindGrabbableFromSlot.cs b/NEOSPlus/Logix/Interaction/Grabbable/FindGrabbableFromSlot.cs new file mode 100644 index 0000000..6e1d6b7 --- /dev/null +++ b/NEOSPlus/Logix/Interaction/Grabbable/FindGrabbableFromSlot.cs @@ -0,0 +1,24 @@ +namespace FrooxEngine.LogiX.Interaction +{ + [Category("LogiX/Interaction/Grabbable")] + [NodeName("Find Grabbable")] + public class FindGrabbableFromSlot : LogixNode + { + public readonly Input Instance; + + public readonly Output Grabbable; + + protected override void OnEvaluate() + { + Slot slot = Instance.EvaluateRaw(); + if (slot == null) + { + Grabbable.Value = null; + } + else + { + Grabbable.Value = slot.GetComponentInParents(); + } + } + } +} \ No newline at end of file