Here is my script (the variable will come in to play as I develop more).
#pragma strict
var a;
function OnMouseDown() {
transform.position.x=613;
transform.position.y=18.07;
transform.position.z=583;
transform.rotation.x=359;
transform.rotation.y=283;
transform.rotation.z=364;
var a = 0;
}
In game, I press on the game object and the positioning is perfect, but the rotation is not working. I keep on adjusting the values, but nothing happens.
The fixed values are:
359.6852 = X,
0.001112414 = y, and
180 = z
The object keeps appearing straight upside-down (but is not quite).
Please help, thanks and advance.