Skip to content

Commit b3284cc

Browse files
authored
Fix typo in the README.md (#16)
# Objective - Snippet example mentions `overstep_fraction`, which is not defined. ## Solution - Replace `overstep_fraction` with `overstep`, which is the correct variable already defined above.
1 parent 2284c88 commit b3284cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn interpolate_transforms(
3939

4040
for (mut transform, position, old_position) in &mut query {
4141
// Linearly interpolate the translation from the old position to the current one.
42-
transform.translation = old_position.lerp(position.0, overstep_fraction);
42+
transform.translation = old_position.lerp(position.0, overstep);
4343
}
4444
}
4545
```

0 commit comments

Comments
 (0)