Created
September 14, 2015 09:42
-
-
Save valbeat/624e23d6ced53593e6cc to your computer and use it in GitHub Desktop.
GetComponent<Rigidbody>().velocityと書くのが面倒な時 ref: http://qiita.com/kajitack/items/d5d9656467a58f6455a0
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
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