Ejemplo n.º 1
0
 public override void Reset() {
     base.Reset();
     rotationParam = ParamSelector.Rotation("rotation", (int) Providers.Target);
     forwardParam = ParamSelector.Direction("forward", (int) Providers.Target, Vector3.forward);
     upParam = ParamSelector.Direction("up", (int) Providers.Target, Vector3.up);
     lookAtPositionParam = ParamSelector.Position("position", (int) Providers.Target);
     offsetParam = new ParamSelector(new Param(ParamType.Rotation, "offset"), (int) Providers.Follower);
 }
 public override void Reset()
 {
     base.Reset();
     rotationParam       = ParamSelector.Rotation(provider: (int)Providers.Leaf);
     forwardParam        = ParamSelector.Direction(defaultValue: Vector3.forward, provider: (int)Providers.Leaf);
     upParam             = ParamSelector.Direction(defaultValue: Vector3.up, provider: (int)Providers.Leaf);
     lookAtPositionParam = ParamSelector.Position(provider: (int)Providers.Root);
     offsetParam         = ParamSelector.Rotation("offset", (int)Providers.Leaf);
 }
Ejemplo n.º 3
0
 public override void Reset()
 {
     base.Reset();
     anchorParam          = ParamSelector.Position(provider: (int)Providers.Link);
     connectedAnchorParam = ParamSelector.Position(provider: (int)Providers.PreviousLink);
     targetParam          = ParamSelector.Position(provider: (int)Providers.PreviousLink);
     limitsParam          = new ParamSelector(new Param(ParamType.AngleLimits), (int)Providers.Link);
     distanceParam        = new ParamSelector(new Param(ParamType.Float, "distance"));
 }
Ejemplo n.º 4
0
 public void Reset()
 {
     lookAtPositionParam = ParamSelector.Position();
     forwardParam        = ParamSelector.Direction("forward", defaultValue: Vector3.forward);
     upParam             = ParamSelector.Direction("up", defaultValue: Vector3.up);
     rotationParam       = ParamSelector.Rotation();
     offsetParam         = ParamSelector.Rotation("offset");
     tweenOptions.Reset();
 }
Ejemplo n.º 5
0
 public override void Reset()
 {
     base.Reset();
     anchorParam          = ParamSelector.Position(provider: (int)Providers.Object1);
     connectedAnchorParam = ParamSelector.Position(provider: (int)Providers.Object2);
     targetParam          = ParamSelector.Position(name: "target", provider: (int)Providers.Object2);
     limitsParam          = new ParamSelector(new Param(ParamType.AngleLimits), (int)Providers.Object1);
     distanceParam        = new ParamSelector(new Param(ParamType.Float, "distance"), (int)Providers.Object1);
 }
Ejemplo n.º 6
0
 public override void Reset()
 {
     base.Reset();
     rotationParam = ParamSelector.Rotation(provider: (int)Providers.PreviousLink);
     forwardParam  = ParamSelector.Direction(name: "forward", provider: (int)Providers.PreviousLink,
                                             defaultValue: Vector3.forward);
     upParam = ParamSelector.Direction(name: "up", provider: (int)Providers.PreviousLink,
                                       defaultValue: Vector3.up);
     lookAtPositionParam = ParamSelector.Position(provider: (int)Providers.PreviousLink);
     offsetParam         = new ParamSelector(new Param(ParamType.Rotation, "offset"), (int)Providers.Link);
 }
Ejemplo n.º 7
0
 public override void Reset()
 {
     base.Reset();
     anchorParam          = ParamSelector.Position(provider: (int)Providers.Leaf);
     connectedAnchorParam = ParamSelector.Position(provider: (int)Providers.Root);
     axisParam            = ParamSelector.Direction("axis", (int)Providers.Root, Vector3.forward);
     secondaryAxisParam   = ParamSelector.Direction("secondaryAxis", (int)Providers.Root, Vector3.right);
     swingAxisParam       = ParamSelector.Direction("swingAxis", (int)Providers.Root, Vector3.right);
     // limitsParam = new ParamSelector(Param.defaultNameForType[ParamType.AngleLimits],
     //         new Param(ParamType.AngleLimits), (int) Providers.Object1);
 }
Ejemplo n.º 8
0
 public override void Reset()
 {
     base.Reset();
     anchorParam          = ParamSelector.Position(provider: (int)Providers.Object1);
     connectedAnchorParam = ParamSelector.Position(provider: (int)Providers.Object2);
     axisParam            = new ParamSelector(new Param(ParamType.Vector3, "axis"), (int)Providers.Object1);
     secondaryAxisParam   = new ParamSelector(new Param(Vector3.right, "secondaryAxis"),
                                              (int)Providers.Object1);
     swingAxisParam = new ParamSelector(new Param(Vector3.right, "swingAxis"), (int)Providers.Object1);
     // limitsParam = new ParamSelector(Param.defaultNameForType[ParamType.AngleLimits],
     //         new Param(ParamType.AngleLimits), (int) Providers.Object1);
 }
 public override void Reset()
 {
     base.Reset();
     followerAnchor = ParamSelector.Position(provider: (int)Providers.Leaf);
     targetAnchor   = ParamSelector.Position(provider: (int)Providers.Root);
 }
Ejemplo n.º 10
0
 public override void Reset()
 {
     base.Reset();
     followerAnchor = ParamSelector.Position(provider: (int)Providers.Link);
     targetAnchor   = ParamSelector.Position(provider: (int)Providers.PreviousLink);
 }
Ejemplo n.º 11
0
 public void Reset()
 {
     anchor1Param = ParamSelector.Position();
     anchor2Param = ParamSelector.Position();
     tweenOptions.Reset();
 }