示例#1
0
        public void update(Body skeleton)
        {
            Vector3 pos = skeleton.Joints[jointType].Position.toSceneCoords();

            simObject.updateTranslation(ref pos, null);

            foreach (var child in children)
            {
                child.update(skeleton, pos, Translation);
            }
        }
示例#2
0
 public void editTranslation(ref Vector3 translation)
 {
     if (simObjectController != null)
     {
         SimObjectBase simObj = simObjectController.getSimObject(Name) as SimObjectBase;
         if (simObj != null)
         {
             simObj.updateTranslation(ref translation, null);
         }
     }
     instance.Translation = translation;
     Modified             = true;
 }
        public void move(Vector3 offset)
        {
            Vector3 translation = modelObject.Translation + offset;

            modelObject.updateTranslation(ref translation, null);
        }
示例#4
0
        public void skeletonUpdated()
        {
            Vector3 newPos = parentBone.Translation + Quaternion.quatRotate(currentOrientation, Vector3.Forward) * distanceToParent;

            faceTargetSimObject.updateTranslation(ref newPos, null);
        }