casper18 Posted March 10, 2011 Share Posted March 10, 2011 hi guyz .. i'm now working on unity 3d .. can you give me some codes that i can use in order for me to navigate around my scene using arrow keys on the keyboard .. ? Thnx ! Link to comment Share on other sites More sharing options...
notamondayfan Posted March 10, 2011 Share Posted March 10, 2011 Did you not get any tutorials / manuals bundled with your purchase? Link to comment Share on other sites More sharing options...
casper18 Posted March 10, 2011 Author Share Posted March 10, 2011 function Update () var speed = 7.0; var rotateSpeed = 3.0; GetComponent(CharacterController); @script RequireComponent(CharacterController) { controller.SimpleMove(forward * curSpeed); } var controller : CharacterController = transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0); var forward = var curSpeed = speed * Input.GetAxis ("Vertical"); transform.TransformDirection(Vector3.forward); heres a code but i need to complete it .. somethings missing in these codes .. can you help me fix it ? i really need it ASAP Link to comment Share on other sites More sharing options...
ctk111 Posted March 10, 2011 Share Posted March 10, 2011 Whey aren't you referencing the various scenes which come with the software? They already have prebuilt navigation nodes which obviously you could reuse in your scene or make changes where needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now