Exemplo n.º 1
0
 public ThreeDOF(Transform bone, Quaternion correction, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2, BAPType type3, Vector3 axis3) :
     base(bone, correction, type1, axis1, type2, axis2)
 {
     this.type3 = type3;
     this.axis3 = axis3;
     lastVal3   = 0;
 }
Exemplo n.º 2
0
 private JointType()
 {
     rotationX = BAPType.null_bap;
     rotationY = BAPType.null_bap;
     rotationZ = BAPType.null_bap;
     parent    = null;
     values.Add(this);
 }
Exemplo n.º 3
0
 private JointType(JointType parent)
 {
     rotationX   = BAPType.null_bap;
     rotationY   = BAPType.null_bap;
     rotationZ   = BAPType.null_bap;
     this.parent = parent;
     values.Add(this);
 }
Exemplo n.º 4
0
 private JointType(BAPType rx, BAPType ry, BAPType rz, JointType parent)
 {
     rotationX   = rx;
     rotationY   = ry;
     rotationZ   = rz;
     this.parent = parent;
     values.Add(this);
 }
Exemplo n.º 5
0
 public TwoDOF(Transform bone, Quaternion correction, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2) : base(bone, correction)
 {
     this.type1 = type1;
     this.axis1 = axis1;
     lastVal1   = 0;
     this.type2 = type2;
     this.axis2 = axis2;
     lastVal2   = 0;
 }
Exemplo n.º 6
0
 public TwistMapper(Transform bone, Transform twistBone, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2, BAPType type3, Vector3 axis3, double twistFactor) :
     base(bone, type1, axis1, type2, axis2, type3, axis3)
 {
     this.twistFactor = twistFactor;
     twist            = new Twist(twistBone);
 }
Exemplo n.º 7
0
 public TwoDOF(Transform bone, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2) : this(bone, Quaternion.identity, type1, axis1, type2, axis2)
 {
 }
Exemplo n.º 8
0
 public OneDOF(Transform bone, Quaternion correction, BAPType type1, Vector3 axis1) : base(bone, correction)
 {
     this.type1 = type1;
     this.axis1 = axis1;
 }
Exemplo n.º 9
0
 public OneDOF(Transform bone, BAPType type1, Vector3 axis1) : this(bone, Quaternion.identity, type1, axis1)
 {
 }
Exemplo n.º 10
0
 public ThreeDOFScaled(Transform bone, Quaternion correction, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2, BAPType type3, Vector3 axis3) :
     base(bone, correction, type1, axis1, type2, axis2, type3, axis3)
 {
 }
Exemplo n.º 11
0
 public ThreeDOFScaled(Transform bone, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2, BAPType type3, Vector3 axis3) :
     this(bone, Quaternion.identity, type1, axis1, type2, axis2, type3, axis3)
 {
 }
Exemplo n.º 12
0
 public bool getMask(BAPType type)
 {
     return(APVector[(int)type].getMask());
 }
Exemplo n.º 13
0
 public int getValue(BAPType type)
 {
     return(APVector[(int)type].getValue());
 }
Exemplo n.º 14
0
 public void setRadianValue(BAPType type, double radian)
 {
     APVector[(int)type].setValue((int)(radian * radianFactor));
     APVector[(int)type].setMask(true);
 }
Exemplo n.º 15
0
 public double getRadianValue(BAPType type)
 {
     return(APVector[(int)type].getValue() / radianFactor);
 }
Exemplo n.º 16
0
 public void applyValue(BAPType type, int value_)
 {
     APVector[(int)type].setMask(true);
     APVector[(int)type].setValue(value_);
 }
Exemplo n.º 17
0
 public void setValue(BAPType type, int value_)
 {
     APVector[(int)type].setValue(value_);
 }
Exemplo n.º 18
0
 public void setMask(BAPType type, bool mask)
 {
     APVector[(int)type].setMask(mask);
 }
Exemplo n.º 19
0
 public YawTwistAfterMapper(Transform bone, Transform twistBone, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2, BAPType type3, Vector3 axis3, double twistFactor) :
     base(bone, twistBone, type1, axis1, type2, axis2, type3, axis3, twistFactor)
 {
 }
Exemplo n.º 20
0
 private void copy(AnimationParametersFrame original, AnimationParametersFrame result, BAPType bapType)
 {
     if (bapType != BAPType.null_bap)
     {
         if (original.getMask(bapType))
         {
             result.applyValue(bapType, original.getValue(bapType));
         }
     }
 }