drag and drop
This commit is contained in:
parent
e17c712ec6
commit
28b6b040b7
4 changed files with 88 additions and 14 deletions
|
|
@ -15,6 +15,6 @@ impl AnimatedTransform {
|
|||
|
||||
pub fn transform_animation(query: Query<(&mut Transform, &AnimatedTransform)>) {
|
||||
for (mut transform, anim_transform) in query {
|
||||
transform.translation = transform.translation.lerp(anim_transform.translation, 0.5);
|
||||
transform.translation = transform.translation.lerp(anim_transform.translation, 0.25);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue