Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/CCmpUnitMotionManager.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | struct MotionState | ||||
// 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. | // Accumulated "pushing" from nearby units. | ||||
CFixedVector2D push; | CFixedVector2D push; | ||||
fixed speed; | |||||
fixed initialAngle; | fixed initialAngle; | ||||
fixed angle; | fixed angle; | ||||
// Used for formations - units with the same control group won't push at a distance. | // Used for formations - units with the same control group won't push at a distance. | ||||
// (this is required because formations may be tight and large units may end up never settling. | // (this is required because formations may be tight and large units may end up never settling. | ||||
entity_id_t controlGroup = INVALID_ENTITY; | entity_id_t controlGroup = INVALID_ENTITY; | ||||
// Meta-flag -> this entity won't push nor be pushed. | // Meta-flag -> this entity won't push nor be pushed. | ||||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator