Add and use easing curves
This commit is contained in:
1 parent
2ebdf0e8fb
commit
81a79e136d
2 files changed
+16
-6
No files matched your search
@@ -27,8 +27,8 @@ void pokerMatchInit(poker_t *poker, engine_t *engine) {
|
||||
}
|
||||
|
||||
void pokerMatchUpdate(poker_t *poker, engine_t *engine) {
|
||||
float t = easeTimeToEase(poker->roundMatch.time, engine->time.current, 5);
|
||||
pokerLookAtPlayer(
|
||||
&poker->cameraWorld, POKER_SEAT_PLAYER0,
|
||||
easeOutCubic(easeTimeToEase(poker->roundMatch.time,engine->time.current,5))
|
||||
&poker->cameraWorld, POKER_SEAT_PLAYER0, 1 - easeOutQuint(t)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user