Originally posted by sleepykid
View Post
You could also implement GetClosestSocketInRange for a subclass of the lever and setup passing out an aligned transform.
*Edit* I made an example of the second method in the new BPSnippets section of the plugins website:
https://vreue4.com/bp-snippets?secti...pping-snippets
See the "Snap to location but keep rotation" snippet in the gripping snippets section. You could run some checks to force a general alignment as well if you wanted too.
Grippables in general could call the parent implementation for the socket loc, but levers/sliders specifically don't implement that (if you are using a physics constrained object then call the parent implementation for the socket transform part and just do the lower part of the graph).
Comment