-
-
Save Gojeflone/9043622 to your computer and use it in GitHub Desktop.
Distinguish between local and world directions in script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Update () { | |
//transform.Translate(Vector3(0,0,1) * Time.deltaTime); | |
var fwd = transform.forward * 100; | |
rigidbody.AddForce(fwd); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment