Slope
Posted: 08 Oct 2009, 00:14
NM, I was looking at the value from modinfo.adune.nl and it seems to be inconsistent with the value you get in spring.
Using the com.springrts.ai.oo.Map.getSlopeMap() how can I check if a position is less than a unit maxslope property.
Units maxslope is normally an integer between 0-80 but the float values returned from getSlopeMap() are small decimal values.
In other words how do I tell if a position is passable by a unit.
Using the com.springrts.ai.oo.Map.getSlopeMap() how can I check if a position is less than a unit maxslope property.
Units maxslope is normally an integer between 0-80 but the float values returned from getSlopeMap() are small decimal values.
In other words how do I tell if a position is passable by a unit.