defold / defold/defold

Physics bug for dynamic size change to collision object

Open
#8,838 0 comments 0 reactions 0 assignees View on GitHub
bug engine physics
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

**Describe the bug (REQUIRED)**
I believe a physics bug has been discovered. I have attached a project that changes a collision’s size at runtime. The build time size is 2x2. I update to 128x128. The collision shape displays, but the logic seems to believe the size is still 2x2 in size. I have attached a video of what is happening. The box begins to dance around. This happens since 1.7.0

**To Reproduce (REQUIRED)**
Steps to reproduce the behavior:
1. Run the attached project and touch the box. In some cases, no touching is required.
2. If Locked Rotation is checked, no dancing occurs that I have seen.

**Expected behavior (REQUIRED)**
Though dynamically built, it should behave just as an object designed in the editor or spawn with a factory that does not have its size changed for collision objects.

**Defold version (REQUIRED):**
- Version 1.7.0

**Platforms (REQUIRED):**
- Platforms: Windows
- OS: Windows 10
- Device: Desk Top PC

**Minimal repro case project (OPTIONAL):**
[PhysicsTest.zip](https://github.com/defold/defold/files/15077082/PhysicsTest.zip)

**Workaround (OPTIONAL):**
Check **locked Rotation**

**Additional context (OPTIONAL):**
https://github.com/defold/defold/assets/75145117/40bba26e-7188-46a3-b67f-13bf79e79312

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.