Quote:
Originally Posted by Maleficus
I'm surprised they can't use the ladder tho - mp_dam has the same setup you describe, and they work fine.
|
I fixed it! Your statement inspired me to try again. I had tried several methods of placing the top ladder node, including the ladder from mp_dam. I went back and looked at it again. The only noticeable difference is that the dam ladder entry is surrounded by a chain link fence and the island one isn't. I tried to copy the node placement exactly. After some tweaking, I got my bot to make an attempt to descend -- he'd jump into the ladder entry then bounce out onto the ladder guard, then repeat until he missed and fell. But once in a while he'd spin down the ladder. When he bounced out of the ladder entry it seemed like he was jumping on thin air -- what could he be hitting? I figured that the bounding box was bigger than the actual animation and that he must be hitting the edge of the ladder.
Then I viewed from a different angle. The path to the ladder from the camp is in the form of a "J" with the ladder at the short end. I used "/timescale 0.3" to run the bot in slow motion so I could see exactly what was happening. I noticed he would make the turn around the curve and swing wide at the final node before encountering the ladder top node. Although he didn't look like he hit anything, he must have been just grazing the sidepost of the railing which sent him into his obstacle-avoidance maneuvers. The swing around the final node also left him going into the ladder entry at a slight angle.
So I dropped the node radii from 15 to 10 to make him follow a more accurate path. That helped a little. Then I made him walk to the turning node so he'd make a tighter turn. That helped a lot. Finally, I adjusted the node position to the right a little to compensate for the bot's turn. Now he whisks down the ladder like a spider into a vacuum cleaner. Was worth the three hours of observation and tweaking it took to figure it out!