Skip to content

Instantly share code, notes, and snippets.

@valbeat
Created September 14, 2015 09:42
Show Gist options
  • Save valbeat/624e23d6ced53593e6cc to your computer and use it in GitHub Desktop.
Save valbeat/624e23d6ced53593e6cc to your computer and use it in GitHub Desktop.
GetComponent<Rigidbody>().velocityと書くのが面倒な時 ref: http://qiita.com/kajitack/items/d5d9656467a58f6455a0
Vector3 velocity{
get{
return GetComponent<Rigidbody>().velocity;
}
set{
GetComponent<Rigidbody>().velocity = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment