Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Nov 07, 2017 7:54 pm 
Offline

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
 Profile  
 
PostPosted: Wed Nov 08, 2017 4:57 pm 
Offline
User avatar

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
 Profile  
 
PostPosted: Wed Nov 08, 2017 8:53 pm 
Offline

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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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 forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group