Hey community, so i have been trying to tackle this problem which is basicly a how to question. i am trying to move an object to the edge of another object, i almost got it to work except for a 'minor' orientation problem, this is the code snippet:
currenthelditem.transform.localPosition.y = Vector3.up + snaptarget.parent.transform.localScale.y * 2;
of course the above doesn't work but it shows my intentions :) so basicly my question is how do i use the up orientation of the 'snaptarget' transform and add the localscale value to it. any ideas ?
↧