public void Initialize() { Transform = new Matrix[StageModel.Bones.Count]; StageModel.CopyAbsoluteBoneTransformsTo(Transform); for (int i = 0; i < boxNum; i++) { box = new BoundingBox[boxNum]; } box[0] = new BoundingBox(new Vector3(-800.0f, 0.0f, -800.0f), new Vector3(800.0f, 800.0f, -800.0f)); box[1] = new BoundingBox(new Vector3(800.0f, 0.0f, -800.0f), new Vector3(800.0f, 800.0f, 800.0f)); box[2] = new BoundingBox(new Vector3(-800.0f, 0.0f, 800.0f), new Vector3(800.0f, 800.0f, 800.0f)); box[3] = new BoundingBox(new Vector3(-800.0f, 0.0f, -800.0f), new Vector3(-800.0f, 800.0f, 800.0f)); }