Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpUnitMotionManager.h
Show All 32 Lines | struct MotionState | ||||
CmpPtr<ICmpPosition> cmpPosition; | CmpPtr<ICmpPosition> cmpPosition; | ||||
CmpPtr<ICmpUnitMotion> cmpUnitMotion; | CmpPtr<ICmpUnitMotion> cmpUnitMotion; | ||||
// Position before units start moving | // Position before units start moving | ||||
CFixedVector2D initialPos; | CFixedVector2D initialPos; | ||||
// Transient position during the movement. | // Transient position during the movement. | ||||
CFixedVector2D pos; | CFixedVector2D pos; | ||||
// Accumulated "pushing" from nearby units. | |||||
CFixedVector2D push; | |||||
fixed initialAngle; | fixed initialAngle; | ||||
fixed angle; | fixed angle; | ||||
// Movement metadata | // Movement metadata | ||||
bool wentStraight; | bool wentStraight; | ||||
bool wasObstructed; | bool wasObstructed; | ||||
}; | }; | ||||
Show All 12 Lines |
Wildfire Games · Phabricator