What is the correct method to scale a shape? #171
-
I am working on resizing bodies/shapes. In examples I saw scaled shapes were wrapped in decorator shapes: ScaledShape However, I see the core I do see the disclaimer on the instance method that not all shapes can be scaled, so I'm wondering if that makes the My current setup saves the The method pattern isn't really simpler code wise but is a different pattern. Is there any benefit one way or the other? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have created some documentation and a demo here: https://jrouwe.github.io/JoltPhysics/#scaling-shapes (note in C++, concepts should work in JS too) |
Beta Was this translation helpful? Give feedback.
I have created some documentation and a demo here: https://jrouwe.github.io/JoltPhysics/#scaling-shapes (note in C++, concepts should work in JS too)