PDA

Просмотр полной версии : [11720] Implement spline movement subsystem


newsbot
08.07.2011, 18:40
автор: SilverIce


<pre>m src/game/CMakeLists.txt
m src/game/ConfusedMovementGenerator.cpp
m src/game/ConfusedMovementGenerator.h
m src/game/Creature.cpp
m src/game/Creature.h
- src/game/DestinationHolder.h
- src/game/DestinationHolderImp.h
m src/game/FleeingMovementGenerator.cpp
m src/game/FleeingMovementGenerator.h
m src/game/GridNotifiers.cpp
m src/game/HomeMovementGenerator.cpp
m src/game/HomeMovementGenerator.h
m src/game/Level3.cpp
m src/game/Map.cpp
m src/game/MapManager.cpp
m src/game/MotionMaster.cpp
m src/game/MovementGenerator.h
m src/game/Object.cpp
m src/game/Player.cpp
m src/game/PointMovementGenerator.cpp
m src/game/PointMovementGenerator.h
m src/game/RandomMovementGenerator.cpp
m src/game/RandomMovementGenerator.h
m src/game/SpellAuras.cpp
m src/game/SpellEffects.cpp
m src/game/TargetedMovementGenerator.cpp
m src/game/TargetedMovementGenerator.h
m src/game/TaxiHandler.cpp
- src/game/Traveller.h
m src/game/Unit.cpp
m src/game/Unit.h
m src/game/WaypointMovementGenerator.cpp
m src/game/WaypointMovementGenerator.h
+ src/game/movement/MoveSpline.cpp
+ src/game/movement/MoveSpline.h
+ src/game/movement/MoveSplineFlag.h
+ src/game/movement/MoveSplineInit.cpp
+ src/game/movement/MoveSplineInit.h
+ src/game/movement/MoveSplineInitArgs.h
+ src/game/movement/packet_builder.cpp
m src/game/movement/packet_builder.h
+ src/game/movement/spline.cpp
+ src/game/movement/spline.h
+ src/game/movement/spline.impl.h
+ src/game/movement/typedefs.h
+ src/game/movement/util.cpp
m src/shared/Timer.h
m src/shared/revision_nr.h
m win/VC100/game.vcxproj
m win/VC100/game.vcxproj.filters
m win/VC80/game.vcproj
m win/VC90/game.vcproj
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[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.</pre>




Подробнее... (https://github.com/mangos/mangos/commit/326ba2c0b634d6b5306335b9e8d7f456c61fc340)