Skip to content

Dynamic change in body size? #209

Answered by RossNordby
Hromon asked this question in Q&A
Discussion options

You must be logged in to vote

If two bodies have different size shapes, they have to have distinct shape instances. Bodies do not have a Scale property anywhere. (Including a per body Scale separate from the shape would kill some optimization opportunities and make things significantly more complex, often resulting in more expensive general purpose collision detection algorithms.)

I wouldn't worry about creating more shapes, especially if you're talking about Box/Sphere/Capsule/Cylinder. ConvexHull is a little heavier, but you'd still need a lot of them to run out of memory.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hromon
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