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; }
private JointType() { rotationX = BAPType.null_bap; rotationY = BAPType.null_bap; rotationZ = BAPType.null_bap; parent = null; values.Add(this); }
private JointType(JointType parent) { rotationX = BAPType.null_bap; rotationY = BAPType.null_bap; rotationZ = BAPType.null_bap; this.parent = parent; values.Add(this); }
private JointType(BAPType rx, BAPType ry, BAPType rz, JointType parent) { rotationX = rx; rotationY = ry; rotationZ = rz; this.parent = parent; values.Add(this); }
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; }
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); }
public TwoDOF(Transform bone, BAPType type1, Vector3 axis1, BAPType type2, Vector3 axis2) : this(bone, Quaternion.identity, type1, axis1, type2, axis2) { }
public OneDOF(Transform bone, Quaternion correction, BAPType type1, Vector3 axis1) : base(bone, correction) { this.type1 = type1; this.axis1 = axis1; }
public OneDOF(Transform bone, BAPType type1, Vector3 axis1) : this(bone, Quaternion.identity, type1, axis1) { }
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) { }
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) { }
public bool getMask(BAPType type) { return(APVector[(int)type].getMask()); }
public int getValue(BAPType type) { return(APVector[(int)type].getValue()); }
public void setRadianValue(BAPType type, double radian) { APVector[(int)type].setValue((int)(radian * radianFactor)); APVector[(int)type].setMask(true); }
public double getRadianValue(BAPType type) { return(APVector[(int)type].getValue() / radianFactor); }
public void applyValue(BAPType type, int value_) { APVector[(int)type].setMask(true); APVector[(int)type].setValue(value_); }
public void setValue(BAPType type, int value_) { APVector[(int)type].setValue(value_); }
public void setMask(BAPType type, bool mask) { APVector[(int)type].setMask(mask); }
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) { }
private void copy(AnimationParametersFrame original, AnimationParametersFrame result, BAPType bapType) { if (bapType != BAPType.null_bap) { if (original.getMask(bapType)) { result.applyValue(bapType, original.getValue(bapType)); } } }