Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Expecting }, found 'static'

$
0
0
Also: expecting EOF, found '}'. #pragma strict var rotationSpeed = 100; function Update () { var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed; rotation *= Time.deltaTime; static Rigidbody.AddRelativeForce (Vector3.back * rotation); } Without the 'static' on the second to last line it would give me an error telling me i cannot use non-static variables with static variables.

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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