Skip to content

First try feedback (v1.0.9) #6

Discussion options

You must be logged in to vote

Huge thanks for the feedback! I'm glad you enjoy using PrimeTween!

SetSpeedBased() (plus, after the tween started I need to find out the duration, what DOTween can)

I already know how to add this feature seamlessly to PrimeTween, and will add it in the next version.
In the current version, it's already possible with a simple method like this:

public static Tween PositionWithSpeed([NotNull] Transform target, Vector3 endValue, float speed, Ease ease = Ease.Default) {
    Assert.IsTrue(speed > 0);
    var duration = Vector3.Distance(target.position, endValue) / speed;
    return Tween.Position(target, endValue, duration, ease);
}

SetUpdateType (Normal/Fixed/LateUpdate)

While adding this …

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
8 replies
@KyryloKuzyk
Comment options

@EnterUserNamePlease
Comment options

@KyryloKuzyk
Comment options

@samanabo
Comment options

@KyryloKuzyk
Comment options

Answer selected by EnterUserNamePlease
Comment options

You must be logged in to vote
2 replies
@KyryloKuzyk
Comment options

@KyryloKuzyk
Comment options

Comment options

You must be logged in to vote
1 reply
@KyryloKuzyk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants