Skip to content

Proper way to handle concave kinetic meshes? #1001

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

You must be logged in to vote

ScaleToMass only works if it has mass to begin with (X * 0 == 0).

Do something like this (the actual mass doesn't matter for a kinematic object as long as it is not zero):

settings.mOverrideMassProperties = EOverrideMassProperties::MassAndInertiaProvided;
settings.mMassPropertiesOverride.SetMassAndInertiaOfSolidBox(2.0f * Vec3(cTorusRadius, cTubeRadius, cTorusRadius), 1000.0f);

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@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