Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
My python page
My ShareCG freebies
Well, I meant it to be used with a Prop, as in some sort of four-wheeled vehicle. But after some experimentation, I found that if you replace "Vehicle" with "Body" through the script, it works well on the currently selected Figure. I don't know what use this would be, except that it sort of looks like ice skating! The banking constant (in the function call at bottom of script) would need to be negative for that purpose, so that the figure would lean into the turns instead of outward as a car does. (Riding a bicycle would also need a negative bank value.)
My python page
My ShareCG freebies
..Actually, my original thoughts on this would be to have a superman-like figure flying, which would require some banking. Any chances of getting this script to apply "steering" and banking based on the Actor's position on the Y axis, as well? so that if it's moved up it will move along the X and Z axis in relation to the direction it's going in? I.E. the Actor turns up or turns down as it moves up or down?
Ah! It took me a minute to see what you're talking about. Like an airplane: nose upward when trying to increase altitude, nose down to dive. Will be easy to include that. I'll post that revision later today.
My python page
My ShareCG freebies
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
![file_246048.txt](https://live.cdn.renderosity.com/forum/_legacy/file_246048.txt)
Here's a script to make a vehicle (car, lawnmower, wheelchair) steer properly. You first set up the animation frames, and then translate the vehicle to where you want it at each frame. (Usually you can set just a few frames and let the spline take care of curving it between those.) Once that's done, apply this script, and the vehicle will end up rotating on the Y axis appropriately so that it appears to be steering into each turn. See notes in the script itself for more specific instructions and limits. I'll be adding a couple more features (like banking) shortly. The script is inserted here; its original name is STEER.PY.My python page
My ShareCG freebies