void move_WithoutTurn(ENTITY* _ent, ENTITY* _target, var _maxSpeed) { VECTOR temp; vec_diff(temp,_target.x,_ent.x); if(vec_length(temp) > _maxSpeed) { vec_normalize(temp,_maxSpeed); } vec_scale(temp,time_step); c_move(_ent,nullvector,temp,IGNORE_PASSABLE); }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de