I mentioned on the last blog post that there was a little more coding to do for wheeling. This has now been done. Unit wheeling is now complete! 😎

The additional code was required to fix some inaccuracies that crept into the wheeling manoeuvres themselves. It is why on the previous blog I was careful not to show two consecutive wheel orders being issued.

This has now been fixed, hence the picture above. The calculations are now accurate enough that when multiple wheels are issued, the calculated turn points appear exactly in the right place. One can tell this is the case because a consecutive wheel in the same direction should result in a turn point that overlaps the previous one.

Aesthetically, the only thing I’m not too happy about is that where a subsequent wheeling manoeuvre is carried out in the opposite direction from the previous manoeuvre, the turn point ends up to one side of the previous arrow head – as opposed to its centre. See the unit on the right for an example of this in the image above.

This is not a bug. It is simply due to the fact that the turn arrows are aligned such that their outer edges align with the turning unit’s outer edge – something that I think looks good. However, the downside is that a consecutive turn point will always appear to be on one side of the previous arrowhead simply because the unit’s edge is not aligned with the centre of the arrow.

I could alter the code so that the unit edge does align with the centre of the arrow, but I think this looks a lot less cool for single wheel turns – which will on the whole form the majority of these type of orders.

So what’s next?

I’m due on holiday next week, so as a result I’m not going to do any more coding until I get back – simply because I’m at a natural stop-point. The last thing I want to do is start something complicated, go on holiday, then come back and have my brain fried! 😆

As a result there won’t be any updates for around two weeks, but you shouldn’t be too concerned.

To tide you over, here is what’s on the current development schedule:

Fix a Line-of-Sight issue with non-rectangular units Code unit road and column travel Implement units with no cohesion Add terrain effects on movement Model formation and equipment effects on movement

Well that’s it for a few weeks! I’m off to enjoy the sun in far away lands 🙂

Laters

RobP

Advertisements