AvatarController.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    public void Start()
    {
        // Holds our bones for later.
        bones = new Transform[25];

        // Initial rotations of said bones.
        initialRotations = new Quaternion[bones.Length];

        // Map bones to the points the Kinect tracks.
        MapBones();

        // Get initial rotations to return to later.
        GetInitialRotations();

        // Set the model to the calibration pose.
        RotateToCalibrationPose(0, KinectManager.IsCalibrationNeeded());
    }