mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11720] Implement spline movement subsystem
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc). Proper implementation of effects such as charge, jump, cyclic movement will rely on it. However, need improve our states system before. Technical changes: 1. Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation. 2. Precission increased. There are no more position desync issues since client's position calculation formulas used. 3. Now possible to move by paths with multiple points, send whole path to client.
This commit is contained in:
parent
e302fce513
commit
9d566398ad
52 changed files with 2471 additions and 1203 deletions
|
|
@ -132,7 +132,7 @@ struct TimeTracker
|
|||
struct ShortTimeTracker
|
||||
{
|
||||
public:
|
||||
ShortTimeTracker(int32 expiry) : i_expiryTime(expiry) {}
|
||||
ShortTimeTracker(int32 expiry = 0) : i_expiryTime(expiry) {}
|
||||
void Update(int32 diff) { i_expiryTime -= diff; }
|
||||
bool Passed() const { return (i_expiryTime <= 0); }
|
||||
void Reset(int32 interval) { i_expiryTime = interval; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue