View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000373||Rabbit Ranchers||[All Projects] Feature Request||public||2018-03-10 13:32||2018-04-14 13:16|
|Target Version||Future||Fixed in Version|
|Summary||0000373: Implement multiple Grid|
|Description||Implement a class RChu.TacticsNav.GridLink which will allow agents to autonomously travel from one Grid to another.|
|Additional Information||* It should have a reference to the two Grid it connects, and for each, a GridPosition indicating where the link physically is.|
* It should have a property distanceScale, which is used for A* calculations
* It should have two related readonly properties useFixedDistance and fixedDistance. They are set with the methods SetFixedDistance( float ) and ClearFixedDistance().
When Agent finds a path to another grid, each GridLink is treated as a node. if useFixedDistance is false, the distance cost of the GridLink is the absolute difference of the two GridPosition representing the two Grid connect points, to the factor of distanceScale. Otherwise, the distance cost is merely fixedDistance.
While Agent travels along the GridLink, its grid should be set to either null or a similar state indicating that it is between grids, and its position should lerp between the first and second GridPosition according to the same absolute speed at which it walks.
|Tags||No tags attached.|