But the problem is that i want my brick to move in the Global axis and the rotation to be the local z axis, more specific i want it to rotate around the center pivot, how is that possible?
I've been looking around at other questions and tried different scripts but this one is the closest i can get.
place the actual shape into an empty game object where the shape is centered perfectly. then update the rotation/movement of the empty and voila! thats what i did for my quasi-tetris game...
Well i stayed up late last night so i could figure this out.
I want to thank cmixco and VS48 for their fast answers. but here's what I've come up with:
'var target : Transform;
var hasRotated : boolean = false;
var angle1 : int = 90;
var angle2 : int = -90;