An animator is used to animate an avatar.
상속: FSO.Common.Rendering.Framework._3DComponent
예제 #1
0
 /// <summary>
 /// Constructs a new AnimationHandle instance.
 /// </summary>
 /// <param name="animator">The Animator instance to use.</param>
 public AnimationHandle(Animator animator)
 {
     this.Owner = animator;
 }
예제 #2
0
        private void Vitaboy_Load(object sender, EventArgs e)
        {
            try
            {
                Content.Content.Init("F:\\Games\\Maxis\\The Sims Online\\TSOClient\\", canvas.GraphicsDevice);
            }
            catch (Exception)
            {
                return;
            }

            Content.Content content;
            content = Content.Content.Get();

            foreach (var binding in content.AvatarBindings.List()){
                bindingsList.Items.Add(binding);
            }

            foreach (var outfit in content.AvatarOutfits.List()){
                outfitList.Items.Add(outfit);
            }

            foreach (var animation in content.AvatarAnimations.List()){
                animationsList.Items.Add(animation);
            }

            _3D = new _3DLayer();
            Camera = new BasicCamera(canvas.GraphicsDevice, new Vector3(10.0f, 10.0f, 10.0f), new Vector3(5.0f, 5.0f, 5.0f), Vector3.Up);
            Scene = new _3DScene(canvas.GraphicsDevice, Camera);
            _3D.Add(Scene);
            canvas.Screen.Add(_3D);

            Animator = new Animator();
            Scene.Add(Animator);
        }