# Community Challenge #6: Box2D scripting 📦

**URL:** <https://forum.defold.com/t/community-challenge-6-box2d-scripting/82935>\
**Category:** Announcements\
**Created:** [June 14, 2026, 1:00pm UTC](https://forum.defold.com/t/community-challenge-6-box2d-scripting/82935 "2026-06-14T13:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [July 10, 2026, 3:40pm UTC](https://forum.defold.com/t/community-challenge-6-box2d-scripting/82935/32 "2026-07-10T15:40:39Z")

</div>

Ok, here’s the last example I managed to publish during this challenge - this one showcases how to change the shape and mass dynamically in code 😉

> **[Box2D dynamic shape scale and mass | Defold](https://defold.com/examples/physics/box2d_dynamic_scale/)**
>
> Resize dynamic Box2D collision shapes at runtime and recalculate body mass.

---

_[View the full topic](https://forum.defold.com/t/community-challenge-6-box2d-scripting/82935)._
