Skip to content

Mass interactions and ways to improve jitter #1055

Answered by jrouwe
SSNTails asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like your inertia calculations are off. If in LoadSnapshotTest::Initialize I add:

settings.mOverrideMassProperties = EOverrideMassProperties::CalculateInertia;

to the loop:

for (BodyCreationSettings &settings : scene->GetBodies())

Then it starts behaving normally.

You can visualize the inertia in the samples app by hitting the 'I' key, without the change the inertia looks like that of a tiny box:

with the change it looks like a box that is about the same size as the barrel:

When you use an inertia that is too small, small impulses lead to big angular velocity changes so it continuously bounces back and forth between both sides of the barrel as is visible in your video. As a g…

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@jrouwe
Comment options

@SSNTails
Comment options

@SSNTails
Comment options

@jrouwe
Comment options

Answer selected by SSNTails
@SSNTails
Comment options

@jrouwe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants