public override bool Set(IModalityAccessor other) { var o = other as PositionModalityAccessor; if (o == null) { return(false); } Enabled = o.Enabled; value = o.value; return(true); }
public override bool Set(IModalityAccessor other) { var o = other as JointModalityAccessor; if (o == null) { return(false); } Enabled = o.Enabled; if (!Enabled) { return(true); } Position = o.Position; Rotation = o.Rotation; return(true); }
public override bool Set(IModalityAccessor other) { var o = other as LegModalityAccessor; if (o == null)//|| o.Side != Side && (o.Side != SideType.None && Side != SideType.None))//constraint on the side { return(false); } Enabled = o.Enabled; if (!Enabled) { return(true); } Hip.Set(o.Hip); knee.Set(o.knee); foot.Set(o.foot); return(true); }
public override bool Set(IModalityAccessor other) { var o = other as HandModalityAccessor; if (o == null)//|| o.Side != Side && (o.Side != SideType.None && Side != SideType.None))//constraint on the side { return(false); } Enabled = o.Enabled; if (!Enabled) { return(true); } for (int i = 0; i < 5; ++i) { Fingers[i].Set(o.Fingers[i]); } return(true); }
public override bool Set(IModalityAccessor other) { var o = other as ArmModalityAccessor; if (o == null)//|| o.Side != Side && (o.Side!= SideType.None && Side!= SideType.None))//constraint on the side { return(false); } Enabled = o.Enabled; if (!Enabled) { return(true); } shoulder.Set(o.shoulder); Clavicle.Set(o.Clavicle); wrist.Set(o.wrist); Elbow.Set(o.Elbow); hand.Set(o.hand); return(true); }
public override bool Set(IModalityAccessor other) { var o = other as TxBodyInput; if (o == null) { return(false); } Enabled = o.Enabled; if (!Enabled) { return(true); } Head.Set(o.Head); Neck.Set(o.Neck); Chest.Set(o.Chest); Waist.Set(o.Waist); LeftArm.Set(o.LeftArm); RightArm.Set(o.RightArm); LeftLeg.Set(o.LeftLeg); RightLeg.Set(o.RightLeg); return(true); }
public abstract bool Set(IModalityAccessor other);