/// <summary> /// Initialize actor /// </summary> /// <param name="ship">The ship the character is on.</param> /// <param name="life"></param> public void Initialize(Ship ship, int life) { //Set character's life m_Life = life; m_LastShip = ship; //Get character's position Vector3 Position = ship.GetCenterTop(); Position.Y += 25.0f; //Calls parent initialization Initialize(Global.ACTOR_MODEL, true, Position.X, Position.Y, Position.Z); //Set model animation m_Model.CurrentAnimation = Global.ACTOR_ANIMATIONS[1]; m_Camera.X = 0; m_Camera.Z = 0; //Set camera orientation m_Camera.RotationX = 0; m_Camera.RotationY = (float)Math.PI; m_Camera.RotationZ = 0; //Attach light m_Light.Position = m_Model.Position; m_Light.Position.Y += 5.0f; m_Light.Position.Z += 5.0f; m_Light.AttachTo(m_Model, true); }