Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Physics bug for dynamic size change to collision object #8838

Open
jcbk101 opened this issue Apr 23, 2024 · 0 comments
Open

Physics bug for dynamic size change to collision object #8838

jcbk101 opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something is not working as expected engine Issues related to the Defold engine physics Issues related to physics (2D and/or 3D)

Comments

@jcbk101
Copy link

jcbk101 commented Apr 23, 2024

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 jcbk101 added the bug Something is not working as expected label Apr 23, 2024
@britzl britzl added engine Issues related to the Defold engine physics Issues related to physics (2D and/or 3D) labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected engine Issues related to the Defold engine physics Issues related to physics (2D and/or 3D)
Projects
None yet
Development

No branches or pull requests

2 participants