Ejemplo n.º 1
0
        public void ConvBone(Bone bone)
        {
            var currentBone = new FusBone
            {
                Name = bone.Name
            };

            _currentNode.AddComponent(currentBone);

            // Collect all bones, later, when a WeightComponent is found, we can set all Joints
            _boneContainers.Push(currentBone);
        }
Ejemplo n.º 2
0
        public void ConvBone(FusBone bone)
        {
            if (_currentNode.Components == null)
            {
                _currentNode.Components = new List <SceneComponent>();
            }

            _currentNode.Components.Add(new Bone
            {
                Name = bone.Name
            });

            // Collect all bones, later, when a WeightComponent is found, we can set all Joints
            _boneContainers.Push(_currentNode);
        }