Profile Picture

Tutorial: Create a PhysX car chassis with steering and path following.

Posted By Rampa 6 Years Ago
Rated 5 stars based on 2 votes.

Tutorial: Create a PhysX car chassis with steering and path following....

Author
Message
Rampa
Rampa
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 8.2K, Visits: 62.6K
After you build the chassis, but before attaching it to the avatar, attach your car frame to the back cross-member of the four-bar linkage. That is the "stationary part. Attach your car wheels to the physics wheels. You can select all the chassis parts and scale them all at once. Scale so your front wheels match, and then move the rear into wheels and shocks into place. Download the Persona I made here:
Import Persona from the right-click menu, drag & drop it, or put in your Persona folder to load by double-clicking it.

sonic7
sonic7
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)Distinguished Member (14.2K reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 1.7K, Visits: 19.4K

Nice one Rampa! - I always enjoy your tutorials .... (for some reason though it cut off a tad short (for me anyway) at 29:00 - don't know why).
But yeah - great practical advice with a result that yields "great mileage"!!! - thanks for sharing - I'll be adding this to my "favorites" list) ....  :)
Steve.

--------------------------------------------------------------------------------------------------------------------------------------------------------
Please be patient with me ..... I don't always 'get it' the first time 'round - not even the 2nd time! :(  - yikes! ... 
MSI GT72VR Laptop, i7 7700HQ 4-Core 3.8 GHz 16GB RAM; Nvidia 1070, 8GB Vram iClone-7.93  3DXChange Pipeline 7.81  CC-3 Pipeline 3.44  Live Face  HeadShot  Brekel Pro-Body  Popcorn FX  iRAY  Kinect V2  DaVinci Resolve17  Mixcraft 8.1

toystorylab
toystorylab
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 4.6K, Visits: 29.9K
Thanx a lot! Easy to follow tutorial.
I got the chasis so far...

https://forum.reallusion.com/uploads/images/5279c982-2f11-4014-8de9-8db0.png


But i behaves way "bumpier" as yours. Set Spring Limit Range to 5 instead of 25, did not change anything...



AND when attaching the car something went wrong:



I will redo that process (unfortunately this part is missing in your tutorial)


Toystorylab on Vimeo : https://forum.reallusion.com/uploads/images/ce44ea78-6984-47d8-9bf4-b783.png    Crassitudes (my "Alter Ego") on Youtube: https://forum.reallusion.com/uploads/images/fcc4df30-b3a8-40a5-a427-0735.png

toystorylab
toystorylab
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 4.6K, Visits: 29.9K
Still got problems with the springs, but overall a nice, very nice tool :w00t:
Will, (after i got those springs working :pinch:) defintely make my car scenes better.
Especially for "drifting" scenes ;)




Toystorylab on Vimeo : https://forum.reallusion.com/uploads/images/ce44ea78-6984-47d8-9bf4-b783.png    Crassitudes (my "Alter Ego") on Youtube: https://forum.reallusion.com/uploads/images/fcc4df30-b3a8-40a5-a427-0735.png

Rampa
Rampa
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 8.2K, Visits: 62.6K
Glad to see it's working! :)

Remember how I pretty much left the physics at defaults? Now that it's built and tested, it is a good time to start wrenching on your car. ;)

To get a smoother wheel roll, try adjusting the physics damping of the wheels themselves (not the hinges) up a bit. This is somewhat terrain dependent as well. You can quickly select all the wheels at once in the scene manager.
https://forum.reallusion.com/uploads/images/850d4315-ea00-48e5-a632-d3b5.jpg

Another thing you can do if you run into an issue of your wheels hitting the cross bars, is make the cross bars shorter, but keep the hings in the same location. There should be no interaction between the child and parent pieces, but I think it will between the wheels and four-bar struts.
https://forum.reallusion.com/uploads/images/04e3c565-eb68-4c9e-aa72-a6d2.jpg

Sometimes it helps to select all the car bits and lower them slightly into the terrain. This will insure good wheel-to-ground adhesion.

The last word of the video is "terrain". :)
rosuckmedia
rosuckmedia
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)Distinguished Member (9.4K reputation)

Group: Forum Members
Last Active: 7 Months Ago
Posts: 3.2K, Visits: 4.8K
Hello, Rampa,
Very good tutorial, thank you very much,
I'll try it soon.
Greeting rosuckmedia :)
toystorylab
toystorylab
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 4.6K, Visits: 29.9K
Rampa (9/29/2019)
Now that it's built and tested, it is a good time to start wrenching on your car. ;)

Tried several things, but it did not really help.
Lowering the car helped a bit.
But moving in terrain was quite a desaster :D
I will try to do the whole thing from scratch.





Toystorylab on Vimeo : https://forum.reallusion.com/uploads/images/ce44ea78-6984-47d8-9bf4-b783.png    Crassitudes (my "Alter Ego") on Youtube: https://forum.reallusion.com/uploads/images/fcc4df30-b3a8-40a5-a427-0735.png

toystorylab
toystorylab
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)Distinguished Member (17.3K reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 4.6K, Visits: 29.9K
Another test...



I really love the "Drifting" effect and the "Shaking" of the car at the end.
But wheels simply don't behave as i would like they do.
Using the spheres (bounding) for wheels work in most cases better than convex hull.
At least they don't make the car bump that heavy, in other, (sharp turn) it's very bad...
Using "Self Mesh" makes iClone crash.
What was really strange, as i tried adding cameras to get the angles that work,
to mask the ugly wheel behaviour, the car went mayhem.
And at a critical point, it kept going mayhem.
Only starting from the point with only one cam (saved as a project) worked.
Also in render i had different behaviour.
Rendered twice and the car did not got that nice shaky end.
So i captured it from screen...
So, many cool things in your tool, needs more tweaking somehow.




Toystorylab on Vimeo : https://forum.reallusion.com/uploads/images/ce44ea78-6984-47d8-9bf4-b783.png    Crassitudes (my "Alter Ego") on Youtube: https://forum.reallusion.com/uploads/images/fcc4df30-b3a8-40a5-a427-0735.png

Rampa
Rampa
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)Distinguished Member (37.5K reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 8.2K, Visits: 62.6K
The blocks that the springs attach to are also moving all the time, so try damping them as well. There are so many variable, that you just need to keep tweaking different things.



Reading This Topic