How can I make my touch translation node snap to an object?

Q and A about functionality and how to solve a special task for your application.

How can I make my touch translation node snap to an object?

Postby Luke47921 » 14 Mar 2017, 12:33

I have an object with a touch translation node attached, and I'd like to be able to snap it to the centre of another object if the two objects overlap (in 2D space) when the touch is released. I'd also like to be able to reset the touch object to its original position if it does not overlap with anything when the touch is released.

Any ideas how I might go about doing this?
Luke47921
 
Posts: 27
Joined: 21 Oct 2015, 13:23

Return to How to...