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 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.º 4
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.º 5
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);
 }