Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Jul 2012
Offline Last Active Sep 03 2012 08:02 PM

Topics I've Started

Mouse look script with java in Unity

05 August 2012 - 08:52 AM

It says I have compiler errors. Anyone see something wrong? I have been checking this for about 10 minutes.

public enum RotationAxis (MouseX = 0, MouseY = 1)

var RotationAxisRotationXY = RotationAxis.MouseX || RotationAxis.MouseY;

var sensitivityX : float = 400f;
var minimumX : = -360f;
var maximumX : = 360f;
var RotationX : float = 0f;

var OriginalRotation : Quaternion;

var RotationY : float = 0f;
var minimumY : float = -360f;
var maximumY : float = 360f;
var sensitivityY : float = 400f;
function Update () {
if(RotationAxisRotationXY == RotationAxis.MouseX){

RotationX += Input.GetAxis("Mouse X") * sensitivityX * Time.deltaTime;

OriginalRotation = XQuaternion = Quaternion.AngleAxis (RotationX , Vector3.up);

transform.localRotation = OriginalRotation * xQuaternion;


Where do I start?

28 July 2012 - 08:11 AM

A few years ago I found a game called Roblox. It's a game for kids, but that is besides the point. The game included an engine which you could build and code on. So I learned LUA.

I want to go on to bigger things and create 3d worlds in which you can roam. I do not have the slightest clue where to start. I am willing to learn anything. I have been working on Blender 3D to make and rig characters. I don't know where to start. Can someone help me find a guide or gives me tips? I am taking anything.