Xlinka / NeosPlus

NeosVR Plugin Extra Logix nodes and features
https://discord.gg/9QAaMtXwke
Other
29 stars 19 forks source link

Add Find Grabbable LogiX Node #143

Closed Nytra closed 11 months ago

Nytra commented 11 months ago

Takes a Slot input and returns the first Grabbable component in parents (as an IGrabbable) or null.

Useful for checking if a slot is grabbable, and also can be used with the other pre-existing Grabbable logix nodes.

Nytra commented 11 months ago

This is my first ever logix node so let me know if there are issues with it

Xlinka commented 11 months ago

Have you tested it and also any gh issues on main for this?, I'll check it when I wakeup later.

Nytra commented 11 months ago

I have tested it and it works, but I'm worried it might be unoptimized. There are no GH issues for this that I could find.

Nytra commented 11 months ago

Changed node name to "Get Slot Grabbable" and optimized it maybe. I made it copy the structure of the "FindCharacterControllerFromSlot" node which also searches for and returns a component ref. It seems to run the code fewer times now than before which is good.

Nytra commented 11 months ago

Updated node to find Grabbable in parents