defold icon indicating copy to clipboard operation
defold copied to clipboard

Physics bug for dynamic size change to collision object

Open jcbk101 opened this issue 2 years ago • 0 comments

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

Workaround (OPTIONAL): Check locked Rotation

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

jcbk101 avatar Apr 23 '24 12:04 jcbk101