What causes (and how to avoid) sheering when scaling a compound shape #173
Answered
by
jrouwe
DennisSmolek
asked this question in
Q&A
-
In the docs it says:
I kinda get the concept of sheering and could expect some sheering with layered non-uniform scaling but I'm trying to understand what can cause it (so I can protect against it) Does this mean I can't scale a compound shape at all? Or that child shapes in a compound shape can't be scaled? Or the way I'm reading it, scaling a compound shape that also has scaled/rotated shapes must be uniformly scaled. Is that correct? |
Beta Was this translation helpful? Give feedback.
Answered by
jrouwe
Jun 2, 2024
Replies: 1 comment
-
See: and |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DennisSmolek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See:
https://github.com/jrouwe/JoltPhysics/blob/343687a61493b1f0642b97b4b7fd05484acc3048/Jolt/Physics/Collision/Shape/CompoundShape.h#L188-L195
and
https://github.com/jrouwe/JoltPhysics/blob/343687a61493b1f0642b97b4b7fd05484acc3048/Jolt/Physics/Collision/Shape/ScaleHelpers.h#L36C17-L54