move: add move_dampen(), deprecate move_stop()
This commit is contained in:
parent
9502941631
commit
8b3e6d5569
1 changed files with 8 additions and 0 deletions
|
@ -66,6 +66,14 @@ INLINE MoveParams move_towards_power(cmplx target, cmplx attraction, real expone
|
|||
};
|
||||
}
|
||||
|
||||
INLINE MoveParams move_dampen(cmplx vel, cmplx retention) {
|
||||
return (MoveParams) {
|
||||
.velocity = vel,
|
||||
.retention = retention,
|
||||
};
|
||||
}
|
||||
|
||||
attr_deprecated("Use move_dampen instead")
|
||||
INLINE MoveParams move_stop(cmplx retention) {
|
||||
return (MoveParams) { .retention = retention };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue