Search Unity

'Snap To Ground' Function In Editor?

Discussion in 'Editor & General Support' started by amcclay, Aug 30, 2006.

  1. amcclay

    amcclay

    Joined:
    Aug 8, 2006
    Posts:
    143
    Hey guys. Is there any easy easy way to select an object and 'snap' it down so it sits on the collision underneath it? This is a really convenient function to have when placing objects on maps with variable height terrain.

    Thanks
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
  3. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    I haven't had much luck with that script, but I HAVE with Aarku's Transform Saver.

    You let gravity drop everything, then save the transforms, and then load them into the editor. Simpler than it sounds--but only useful if physics/gravity will put things where you want.

    See:
    http://www.unifycommunity.com/wiki/index.php?title=TransformSaver