- Home /
Question by
OwenCourt · May 19, 2012 at 05:04 PM ·
javascripterror
Help !! MIssing Semi colon in my coding
Could somebody help me find the missing semi colon at the end ?? i cannot find it :D
public enum RotationAxis {mouseX = 0, MouseY = 1}
var rotationAxisRotationXY = RotationAxis.mouseX || RotationAxis.MouseY;
var sensitivityX : float = 400f;
var minimumX : float = -360f;
var maximumX : float = 360f;
var rotationX : float = of;
var originalRotation : Quaternion;
// Now lets set the variables for the Y Axis so the player can then look up and down
// using the mouse.
var RotatationY : flaot =0f;
var minimumY : float = -360f;
var maximum : float = 360f;
var sensitivityY : float = 400f;
function Update () {
if(RotationAxisRotationXY == RotationAxis.mouseX) {
RotationX += Input.getAxis("MouseX")* sensitivityX * Time.deltatime;
originalRotation = XQuaternion = Quaternion.AngleAxis (RotationX , Vector3.ip);
transform.localRotation = originalRotation * XQuaternion;
}
}
Comment
Answer by Bunny83 · May 19, 2012 at 05:05 PM
*sigh*
...
You mistyped float in this line:
var RotatationY : flaot =0f;
edit while fixing your code highlighting i've found another mistyped "thing".
I guess the "o" in this line should be a "0" (zero)
var rotationX : float = of;