unity 3d student

Beginner B18 – Local vs World Direction

How to distinguish between Local and World directions in scripting.

Code Used (Javascript)

function Update () {
  1.  //transform.Translate(Vector3(0,0,1) * Time.deltaTime);
  2.  var fwd = transform.forward * 100;
  3.  rigidbody.AddForce(fwd);
  4. }

Further Reading

Share via Social Media

  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites

17 Comments