vleue / bevy_easings

Bevy plugin for easings and simple animations
181 stars 28 forks source link

Final values becomes NaN/inf, if duration for easing is 0 #6

Open kundankr opened 3 years ago

kundankr commented 3 years ago

e.g. code

duration = Duration::default()
commands.insert_one(
            ent,
            transform
                .ease_to(
                    transform.clone(),
                    bevy_easings::EaseFunction::SineInOut,
                    bevy_easings::EasingType::Once { duration},
                )
)
mockersf commented 3 years ago

thank you for reporting this.

it should be fixed now, but master tracks bevy master so I'll probably wait for a bevy release to push a new version...