- Home /
how to snap objects by colliders2D ?
hello,
i'm working on a 2d game (collider2D)
i want to snap the gameobjects according to their colliders (not their meshes).
how can i achieve that ?
any suggestions, tools, tutorials will be appreciated.
Thx.
Answer by DrGreenthumbs92 · Oct 20, 2015 at 12:04 PM
I'm not 100% sure that's possible but you could do a work around and resize both meshes to the size of the colliders then snap them together (CTRL+V for vert snapping) then resize the mesh to what you need, info on snapping found here
thx for that, however, it's not an efficient approach if you need to design many levels. But, i found something in the link you've sent me which is called surface snapping "While dragging in the center using the Translate Tool, you can hold Shift and Control (Command on $$anonymous$$ac) to snap the object to the intersection of any Collider. This makes precise positioning of objects incredibly fast." but for some reason it's not working, maybe they have not implemented it for 2d colliders