Moving an object in its local space

Hi,

I’m trying to move an object that is touched(on the iphone) and move it around its local space. and have it only move a certain amount. Also the cube its attached too can spin around.

I can get it moving base on world space and move it around on the near plane of the camera but I was it to only move based on the cube that its parented too. Can anyone help. I’m a newb at programming (artist by trade) and I just wanted to say this forum been a great help getting me started!!

100447--3878--$picture_1_655.png

I believe this might be what you’re looking for. In addition, if you’re feeling really adventurous, you can adjust Transform.localRotation and Transform.localEulerAngles directly.

edit: Seems you need to do positional movement as well. Handily, that’s Transform.localPosition. Hope that helps!