Search Issue Tracker

Active

Under Consideration for 1.2.X, 1.3.X

Votes

1

Found in [Package]

1.2.0 - Entities

1.3.X - Entities

Issue ID

ECSB-1076

Regression

No

GameObject with Physics Shape Component moves when the Editor window is moved or resized

Package: Unity Physics

-

How to reproduce:
1. Open the “G00000_AceLand-Library-DOTS“ project
2. Open the “SampleScene”
3. Enter Play Mode
4. Move the Editor window around and observe the Game view

Expected result: The “Hero” GameObject is unaffected
Actual result: The “Hero” GameObject starts moving vertically

Reproduced with: 1.0.16 (2022.3.26f1, 6000.0.0b16), 1.2.0 (2022.3.26f1, 6000.0.0b16)

Reproduced on: Windows 11
Not reproduced on: No other environment tested

Notes:
1. Also reproducible when resizing the Editor window
2. Could not test in the Player → The “Hero” GameObject does not exist
3. Could not reproduce in a new project

Comments (3)

  1. parsue

    Apr 25, 2024 04:16

    The reason of problem on Windows moved is found.
    I move all apply physics Update in Fixed Step Simulation System Group, and it become normal now.

    the last problem is ApplyAngularImpulse is not update in correct timestamp.

  2. parsue

    Apr 24, 2024 07:30

    reason of fps problem:
    ApplyAngularImpulse will simulate in different timestamp? but ApplyLineraImpulse is normal.
    Use PhysicsVelocity.Angular += value * deltaTime will be fine.

    is this another bug? or normal?

  3. parsue

    Apr 20, 2024 00:56

    - happened in build
    - happened on both rigidbody with collider and physics body with physics shape
    - not only vertically, rotation is not stable too, lower fps become serious.
    - same calculation in non-dots project works fine

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.