move: add move_from_towards_exp
This commit is contained in:
parent
cf2af23b06
commit
556f5b6667
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ INLINE MoveParams move_towards_exp(cmplx vel, cmplx target, cmplx attraction, re
|
|||
};
|
||||
}
|
||||
|
||||
INLINE MoveParams move_from_towards_exp(cmplx origin, cmplx target, cmplx attraction, real exponent) {
|
||||
return move_next(origin, move_towards_exp(0, target, attraction, exponent));
|
||||
}
|
||||
|
||||
attr_deprecated("Use move_towards_exp instead")
|
||||
INLINE MoveParams move_towards_power(cmplx target, cmplx attraction, real exponent) {
|
||||
return move_towards_exp(0, target, attraction, exponent);
|
||||
|
|
Loading…
Reference in a new issue