At 4/11/12 04:06 PM, PSvils wrote:
P.
I attached a picture below to show how it's supposed to work.
It doesn't actually create any new nodes, just moves the current ones.
MSGhero, I updated the demo with a slider to control the smoothness and deviation, so you can lay out a path and play around with the slider and see the path changing.
Here's the demo again: http://www.4urentertainment.org/storage/Smoothing.swf
This was actually part of a class at Udacity where if you have a robotic car that you're laying out a path for, and your A* has gotten the path, but the path is pretty rigid, as in the picture, it goes right, then suddenly down, then left etc.. And a car obviously can't rotate immediately like that.
So the path smoother makes it so that these turns are smoother by minimizing the distance between nodes. So technically, the higher the smoothing parameter, the more the path will be direct and ignore the twists and turns of the original path. But of course you don't want that so you set it to something low.
I really think it could work pretty good. I mean how awesome would it be for an enemy to not go up the wall, turn to pass it, then turn around to go to the player, and instead smoothly go around this wall?
Also:
At 4/11/12 04:06 PM, PSvils wrote:
Got my Android compiling today. BTW, could I perhaps use you to compile iPhone apps? (Whenever that will happen...). Not having Mac sucks for that shit :)
Sure! I'd be happy to help.