# Physics Simulation Forum

 All times are UTC

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Is my object scale too small?Posted: Tue Nov 07, 2017 7:54 pm

Joined: Tue Jul 18, 2017 7:48 pm
Posts: 10
Hi everyone ^_^

I'm experiencing some jittering and unsmooth movement, which as far as I can tell nobody else experiences. While trying to suspect something, I suspect that my world scale is too small.

I use all defaults for all settings. I mentally use ~meters with my character height 1.f, almost all objects that I have are in [0.5f;2.f] on their smallest axes (some are bigger only few are smaller)?

So yeah, is this scale too small? If so, how big is enough?

Top

 Post subject: Re: Is my object scale too small?Posted: Wed Nov 08, 2017 4:57 pm

Joined: Tue Sep 30, 2014 6:03 pm
Posts: 363
Location: San Francisco
Convex shapes in Bullet have a default collision margin of 0.04m, so when you get within a few multiples of that you can start to have problems where the shapes are actually smoother/rounder than they look, or you can have visible gaps between stacked objects. The extra roundness can make some objects more likely to tip over (the resting footprint may be much smaller than it appears).

I've seen objects behave in the way you describe when their inertia tensors are too small for their mass/shape: torques from side collisions can rotate the objects too fast. You may gain stability by artificially increasing inertia tensors, but do this too much and your objects may become too hard to roll or will slide without rolling: the friction force does not provide enough torque to spin the objects to match their linear motion.

You can also gain stability by reducing the restitution (bounciness) of the colliding objects.

You can increase angular damping. This is a non-physical effect, but can sometimes be tuned higher without introducing too many other problems.

Finally, you can reduce jittering by reducing the substep period (taking more simulation steps per second).

Top

 Post subject: Re: Is my object scale too small?Posted: Wed Nov 08, 2017 8:53 pm

Joined: Tue Jul 18, 2017 7:48 pm
Posts: 10
Thanks again for the help!
I do not have that small objects. This jitters and non-smooth movement is something that appears rarely, randomly (as far as I can tell), and for small period of time.
Otherwise I do 3 substeps per frame assuming 60 FPS. I kind of feel like this is enough but I really have no arguments to defend it. I'm not sure how I should pick that value.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 3 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 21 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ BULLET PHYSICS LIBRARY USERS    General Bullet Physics Support and Feedback    Release Announcements    Applications, Games, Demos or Movies using Bullet PHYSICS AUTHORING TOOLS, SERIALIZATION AND STANDARDS    Physics authoring tools, serialization, standards and related topics RESEARCH AND DEVELOPMENT IN COLLISION DETECTION & PHYSICS. Don't post Bullet support questions here!    Research and development discussion about Collision Detection and Physics Simulation    Links, Papers, Libraries, Demos, Movies, Comparisons       Non-technical forum and license/patent discussion    Career Opportunities