Page 1 of 1

TurnInPlace tag

Posted: 27 Feb 2007, 18:46
by KDR_11k
This tag would tell a unit to not move forward at all when turning, optionally there could be a MinTurnSpeed and MaxTurnSpeed tag that define the lowest and highest speed a unit can move forwward at while turning.

The purpose would be to enable e.g. tanks to turn in place without moving forward while turning. This would also make limited arc units stay in their formation when aiming at something.

I think steering mode is supposed to do something similar, is that tag used by Spring?

Posted: 27 Feb 2007, 21:41
by FLOZi
+1 this would be really great.

Posted: 27 Feb 2007, 22:12
by rattle
Can be done through scripting but it's better this way.

Posted: 28 Feb 2007, 02:58
by Argh
Actually, doing this with scripting works great, and is very efficient, I've been using this quite a lot!

Posted: 28 Feb 2007, 07:55
by KDR_11k
What do you mean with doing this with scripting, forcing a MAX_SPEED of 0 (or 1) when you detect rotation?

Posted: 28 Feb 2007, 10:21
by rattle
Yes. Make a backup of the original MAX_SPEED value, though, and then gradually reduce speed when the angle the unit has turned in time x exceeds a certain value, i.e. 45°/2 = MAX_SPEED*0.66, 45° = MAX_SPEED*0.33, 75° = 0.