Profile Picture

Physics shape for car wheel

Posted By 3dtester 6 Years Ago
You don't have permission to rate!
Author
Message
3dtester
3dtester
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 999, Visits: 2.2K
Hi, i have run into a problem i can't easily describe (again ;))

Think about this car wheel. You can't use the self-mesh because it is too complex.

https://forum.reallusion.com/uploads/images/093cafe0-7cdc-4164-9a25-5b49.png

So you either have the option to use a sphere, which is not physically correct for a wheel.

https://forum.reallusion.com/uploads/images/45f798fa-91e7-4f37-a483-4b2a.jpg

It works. Because it has clean and even surface for physics simulation. However, not correct. The car will drift to the sides.
If you use the convex hull, there will be a problem.
The convex hull only works as long as you don't set a pivot for it. This is a bug. Here an example with an actual physics prop from the iClone stock content.
It has physics already enabled and shape set to convex hull. Looks good, right?

https://forum.reallusion.com/uploads/images/8066d799-0fa3-4659-a91d-b99f.jpg

Setting the pivot to center causes this:

https://forum.reallusion.com/uploads/images/42a66070-2888-458c-ad51-cf47.jpg

Now what is left is the idea of using a dummy wheel, which will be just a prop that you attach the real wheel to.
But that dummy prop has the same issue. Self-mesh doesn't produce a clean surface (still there are edges).

https://forum.reallusion.com/uploads/images/d4d81442-2df4-4d70-aaec-2b59.jpg

And the convex hull doesn't do it right from the start, since the pivot is already set.

https://forum.reallusion.com/uploads/images/694f82cc-38bd-4686-9f7b-6a64.jpg






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 Months Ago
Posts: 8.2K, Visits: 62.6K
The cylinder in the create menu has beveled edges. Use the one in the 3d object folder. It should work better. Dummies are the best way that I have found. See this video:

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 Months Ago
Posts: 8.2K, Visits: 62.6K
I should add as well that the convex shape has to fully enclose the cylinder. Since it does it with fewer polys, the facets require is to enlarge to fit over the cylinder. Basically its fewer polys to cover the same curve. A good solution is to make your dummy wheel just a bit smaller than the prop wheel you attach to it, so the physics shape will match you prop wheel in diameter.
3dtester
3dtester
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)Distinguished Member (5.1K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 999, Visits: 2.2K
Thank you @Rampa for the comprehensive tutorial video and the additional hints.

With a basic test set-up, using the non-beveled cylinder as you mentioned, there is no issue.
The convex hull works well and the 'car' runs without a glitch.

The problem might be the weight and compexity that my truck has.
It has a very realistic suspension, which seems to make it more sensitive to the wheel shape.
Truck has 6 accelerated wheels and the trailer additional 6 passive wheels (i did my tests without the trailer).
In any case, as soon as i use a convex hull (or self mesh) for the wheel dummies, the whole thing gets unstable.
But a sphere shape obviously has much less 'edges' and the truck actually runs.
Only problem is that it lacks side-stability.







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 Months Ago
Posts: 8.2K, Visits: 62.6K
I actually found spheres work best as well. Set the friction as high as possible to increase stability. I just type in 9's until I can't anymore. ;)



Reading This Topic