18 lines
419 B
C
18 lines
419 B
C
|
/*
|
||
|
* This software is licensed under the terms of the MIT-License
|
||
|
* See COPYING for further information.
|
||
|
* ---
|
||
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
||
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
|
||
|
*/
|
||
|
|
||
|
#include "taisei.h"
|
||
|
|
||
|
#include "move.h"
|
||
|
|
||
|
complex move_update(MoveParams *p) {
|
||
|
complex v = p->velocity;
|
||
|
p->velocity = p->acceleration + p->retention * v;
|
||
|
return v;
|
||
|
}
|