Skip to content

Commit e853de3

Browse files
committed
Rename ResetInterpolation to ResetEasing
1 parent c34269b commit e853de3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/commands.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ use bevy::{
77

88
use crate::{RotationEasingState, ScaleEasingState, TranslationEasingState};
99

10-
/// A [`Command`] that resets the interpolation state of an entity.
10+
/// A [`Command`] that resets the easing states of an entity.
1111
///
12-
/// This disables interpolation for the remainder of the current fixed time step,
12+
/// This disables easing for the remainder of the current fixed time step,
1313
/// allowing you to freely set the [`Transform`](bevy::transform::components::Transform)
14-
/// of the entity without any interpolation being applied.
14+
/// of the entity without any easing being applied.
1515
#[derive(Clone, Copy, Debug, PartialEq, Eq, Reflect)]
1616
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
1717
#[cfg_attr(feature = "serialize", reflect(Serialize, Deserialize))]
1818
#[reflect(Debug, PartialEq)]
19-
pub struct ResetInterpolation(pub Entity);
19+
pub struct ResetEasing(pub Entity);
2020

21-
impl Command for ResetInterpolation {
21+
impl Command for ResetEasing {
2222
fn apply(self, world: &mut World) {
2323
let Ok(mut entity_mut) = world.get_entity_mut(self.0) else {
2424
return;

src/extrapolation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ use bevy::prelude::*;
227227
/// and the entity will be teleported without interrupting the extrapolation.
228228
///
229229
/// In other instances, it may be desirable to instead interrupt the extrapolation and teleport the entity
230-
/// without any easing. This can be done using the [`ResetInterpolation`] command and then setting the [`Transform`].
230+
/// without any easing. This can be done using the [`ResetEasing`] command and then setting the [`Transform`].
231231
///
232-
/// [`ResetInterpolation`]: crate::commands::ResetInterpolation
232+
/// [`ResetEasing`]: crate::commands::ResetEasing
233233
///
234234
/// # Alternatives
235235
///

src/interpolation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ use bevy::prelude::*;
116116
/// and the entity will be teleported without interrupting the interpolation.
117117
///
118118
/// In other instances, it may be desirable to instead interrupt the interpolation and teleport the entity
119-
/// without any easing. This can be done using the [`ResetInterpolation`] command and then setting the [`Transform`].
119+
/// without any easing. This can be done using the [`ResetEasing`] command and then setting the [`Transform`].
120120
///
121-
/// [`ResetInterpolation`]: crate::commands::ResetInterpolation
121+
/// [`ResetEasing`]: crate::commands::ResetEasing
122122
///
123123
/// # Alternatives
124124
///

0 commit comments

Comments
 (0)