Pathing in 0.82.6.1-28-g3be0661 Now with videos!

Pathing in 0.82.6.1-28-g3be0661 Now with videos!

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Pathing in 0.82.6.1-28-g3be0661 Now with videos!

Post 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.
Last edited by Godde on 04 Nov 2010, 17:15, edited 3 times in total.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Pathing in 0.82.6.1-28-g3be0661

Post 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.
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Pathing in 0.82.6.1-28-g3be0661

Post 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...
Attachments
Half The turnRate.ogv.zip
TurnRate=97.5 half of normal
maxVelocity/2=turnInPlaceSpeedLimit=1.405
(3.83 MiB) Downloaded 18 times
Post Reply

Return to “Help & Bugs”