Last active
April 29, 2016 22:04
-
-
Save maxweisel/9753d5af86fb0f22b9067ba77cd57d91 to your computer and use it in GitHub Desktop.
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
void Awake() | |
{ | |
/* ... */ | |
// Create an empty game object. Attach a rigid body to use later for calculating velocity. | |
_controller = new GameObject(); | |
_controllerRigidBody = _controller.AddComponent<Rigidbody>(); | |
_controllerRigidBody.isKinematic = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment