Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Transform.right

Switch to Manual
public var right: Vector3;

Description

The red axis of the transform in world space.

	// Set's the rigidbody velocity to be 
	// along the red axis of the transform
	rigidbody.velocity = transform.right * 10;