public void SetTargetAndType(Transform transform, TransformTargetType targetType) { _transform = transform; _targetType = targetType; }
/// <summary> /// Initializes a new instance of the <see cref="Prime31.ZestKit.TransformSpringTween"/> class. /// </summary> /// <param name="transform">Transform.</param> /// <param name="dampingRatio">lower values are less damped and higher values are more damped resulting in less springiness. /// should be between 0.01f, 1f to avoid unstable systems.</param> /// <param name="angularFrequency">An angular frequency of 2pi (radians per second) means the oscillation completes one /// full period over one second, i.e. 1Hz. should be less than 35 or so to remain stable</param> public TransformSpringTween(Transform transform, TransformTargetType taretType, Vector3 targetValue) { _transform = transform; _targetType = taretType; setTargetValue(targetValue); }
public void SetTargetAndType(Transform t, TransformTargetType type) { transform = t; targetType = type; }
/// <summary> /// Initializes a new instance of the <see cref="Prime31.ZestKit.TransformSpringTween"/> class. /// </summary> /// <param name="transform">Transform.</param> /// <param name="dampingRatio">lower values are less damped and higher values are more damped resulting in less springiness. /// should be between 0.01f, 1f to avoid unstable systems.</param> /// <param name="angularFrequency">An angular frequency of 2pi (radians per second) means the oscillation completes one /// full period over one second, i.e. 1Hz. should be less than 35 or so to remain stable</param> public TransformSpringTween( Transform transform, TransformTargetType targetType, Vector2 targetValue ) { _transform = transform; _targetType = targetType; setTargetValue( targetValue ); }
/// <summary> /// Initializes a new instance of the TransformSpringTween class. /// </summary> public TransformSpringTween(Transform transform, TransformTargetType targetType, System.Numerics.Vector2 targetValue) { _transform = transform; _targetType = targetType; SetTargetValue(targetValue); }