public static T AddRotRigElem <T>(this IRigControler controler, T elem, bool useLocal) where T : IRotRigElement { controler.AddApplicator(new RotationRigAplicator(elem, useLocal)); return(elem); }
public static T AddTraRigElem <T>(this IRigControler controler, T elem) where T : ITranRigElement { controler.AddApplicator(new TranslationRigAplicator(elem)); return(elem); }
public static IK_Chain AddIK_Chain(this IRigControler controler, Transform target, Transform pole, IK_Chain.ComputationTypes type, bool useLocal = true) { return(controler.AddRotRigElem(new IK_Chain(target, pole, type), useLocal)); }
public static PositionConstraint AddPositionConstrain(this IRigControler controler, Transform obj, Transform target) { return(controler.AddTraRigElem(new PositionConstraint(obj, target))); }
public static LookAtWithPole AddLookAtWithPole(this IRigControler controler, Transform obj, Transform target, Vector3 poleVector, bool useLocal = true) { return(controler.AddRotRigElem(new LookAtWithPole(obj, target, poleVector), useLocal)); }