VRChat UdonSharp Magnet 1.2.2
- 300 JPY
Magnet for VRChat UdonSharp that can be attached/snapped to any collider or only specific colliders via customizeable layermask and a collider array to be used. Drops if it doesn't find a valid collider to attach to. Includes both UnityPackage for udonsharp version and a simple UdonGraph version with only 1 raycast. UdonGraph version may not be updated. Graph is currently more around 1.1 and don't feel like updating it much since graph is just a mess so quickly
Changelog
V1.2.2 Everything is now pretty much udonsharp only... Stop checking collision while already attached v1.2.1 (UdonSharp Only) It'll now keep a fake Parent <> Child relationship so it keeps following the parent without actually being parented v1.2 (UdonSharp Only) Can now be thrown and check for attachment on collision. Also got detachment clips you can turn on too v1.1 (UdonSharp Only) Can now set it to parent itself to whatever it attaches itself to
Setup
Requires VRCObject sync, Rigidbody, Collider, VRCPickup to be added along with the Magnet UdonBehaviour. Add a child object and make sure the blue arrow points towards where you want it to attach from. Can then choose which layers it should attach to and also if it should be limited to specific colliders or not. Includes Example Scene