Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

expecting error

$
0
0
uh, i'm trying to make a simple 'ball' object to jump, and i'm currently doing it while watching this [video][1] and this is my script #pragma strict var rotationSpeed = 100; var jumpHeight = 8; private var isFalling = false; function Update () { //Handle ball rotation. var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed; rotation *= Time.deltaTime; rigidbody.AddRelativeTorque (Vector3.back * rotation); if (Input.GetKeyDown (KeyCode.W)) ( rigidbody.velocity.y = jumpHeight; ) } but when i try it on unity, i got these error Assets/BallControl.js(17,30): BCE0044: expecting ), found '='. Assets/BallControl.js(17,31): UCE0001: ';' expected. Insert a semicolon at the end. Assets/BallControl.js(17,42): UCE0001: ';' expected. Insert a semicolon at the end. Assets/BallControl.js(17,42): BCE0043: Unexpected token: ;. and my script is 100% looks alike the script on the video, i don't understand where did i do wrong... [1]: https://www.youtube.com/watch?v=PazLGgeFkHI

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>