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

it says an intance of type "unityEngine.rigidbody" is requrid to access non static member addrelativetorque. what does this mean??\

$
0
0
#pragma strict var rotationSpeed = 100; function Update () { var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed; rotation *= Time.deltaTime; Rigidbody.AddRelativeTorque (Vector3.back * rotation) ;

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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