Skip to content

Collision size is affected by the parent object scale #3024

@Asatte32

Description

@Asatte32

Version: Stride 4.3.0.2507

Platform(s): Windows

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create an entity (prefab)
  2. Add a collision body (any kind of body from Bepu and Bullet)
  3. Scale the parent entity
  4. Reload the project
  5. Collision object is resized with the scale of the parent (it goes back to normal after changing a value and changing it back)

Expected behavior
I expect a consistent behavior. Collision shapes should either be always scaled with the object or should never be scaled with it and stay that way.

Screenshots
Before I update the value (scaled by 5 as the parent object's scale is (5,5,5)):
Image
After value is updated and changed back to the original value (correct size)
Image

Size of the collision on the scene after a prefab is added
Image
Collision size on the prefab
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions