[Closed] Stopping an object on a path
Hi there. I’m new to Maxscript, and have been working on this project for a while now. I’m currently having a problem with path controllers, and was hoping that somebody might be able to give me some ideas.
I have a list of points that represent a vehicle’s path, and I’ve built a spline out of these, bound the vehicle model to it, and can get it to move along the path by hitting play in Max. The problem is getting the vehicle to stop at an arbitrary point. I’ve been playing with the path controller’s percent parameter, but have met with limited success. It seems to me that at a stop, the percent controller should be set to the same percentage for every frame within the stop time period. However, in practice this messes up the rest of the path as well.
If anyone has done anything like this before and has any suggestions, please let me know!
Thanks a lot!
It would actually help if you explain how it messes up.
Does the vehicle speed up/slow down before/after your stop period?
Does it go off the path?
Other things that may help answer your question:
How do you define your stop period?
What do you want this script to do for you?
Hi, thanks for your reply. I’ve actually since found a way to get around this. Rather than using the percent controller, I’ve changed to just setting the object’s .pos parameter to the specific point I want it to be at (so a stop results in it being set to the stop point multiple times, for each time slice). I should have thought of this sooner, but like I said, I’m new to Maxscript.
Thanks again.
http://www.martincoven.com/indexSD.html
Go to the making of section, and click on the second entry from the top “Scorpoin Animation”. I have it setup so that a spinner controls the % along the path as well as the leg animation. Pretty simple setup that you could script as well.
hope it helps
-Martin