Page 1 of 1

Pathing in 0.82.6.1-28-g3be0661 Now with videos!

Posted: 04 Nov 2010, 02:05
by Godde
The default(maxVelocity/5?) turnInPlaceSpeedLimit is too low for this unit.
DefaultTurnInPlaceSpeedLimit-2.ogv.zip
It paths well but brake alot
(2.28 MiB) Downloaded 15 times
Anyway... Getting the right turnInPlaceSpeedLimit depends on alot of factors, turnRate, maxVelocity, brakeRate.

This unit I tested would brake alot everytime it turned looking visually bad and making its way really slow. This is how it is for like all tanks and vehicles in spring1944.

Giving the unit I tested half of the maxvelocity in turnInPlaceSpeedLimit worked very well.
HalfTurnInPlaceSpeedLimit.ogv.zip
maxVelocity/2=turnInPlaceSpeedLimit
(2.15 MiB) Downloaded 13 times
Giving it the full maxVelocity in turnInPlaceSpeedLimit made it crash into walls like crazy again. Insert video here. Although it still gets unstuck which it wouldn't pre-0.82.6.1-22-g071d382 :-).
Pathing through obstacles.ogv.zip
maxVelocity=turnInPlaceSpeedLimit
(2.15 MiB) Downloaded 13 times
On the other hand reducing the turnRate with half would make the unit crash into walls again even if turnInPlaceSpeedLimit was set to half the maxVelocity. I tried to insert video here but attachments are 3 at max.http://springrts.com/phpbb/download/file.php?id=5121

Forcing modders to find the appropriate turnInPlaceSpeedLimits for induvidual hovers, vehicles and other slow turning fast units will be time consuming unless someone comes up with a good way to find appropriate values.

Re: Pathing in 0.82.6.1-28-g3be0661

Posted: 04 Nov 2010, 03:03
by Google_Frog
This is insane. Limiting their lower speed is not a solution to slowing down when about to complete their turn as then they will turn too quickly when facing in the opposite direction to their destination.

The turninplace = 0 in the current release works fine. Units maintain a reasonable speed based on their progress throughout the turn such that they do not swing out too far. Just revert whatever happened to this tag since 0.82.6.1.

Re: Pathing in 0.82.6.1-28-g3be0661

Posted: 04 Nov 2010, 07:51
by Godde
I think that in the current release the unit will keep whatever speed it has when it starts to turn and propably even accelerate to max speed as it turns. If it is at max speed it will turn with max speed.
Turning around and accelerating.ogv.tar.gz
0.82.6.1 Current release
brakeRate=0
(2.29 MiB) Downloaded 12 times

0.82.6.1-28-g3be0661 - Units don't accelerate that fast when turning
Turning around but not accelerating-1.ogv.zip
0.82.6.1-28-g3be0661
brakeRate=0
(1.16 MiB) Downloaded 12 times


For the other post...