Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
134 stars 2 forks source link

Small collider issue with Camera, Portal and Mirror created via DevTool #148

Open Zyzyl opened 11 months ago

Zyzyl commented 11 months ago

Describe the bug?

Selecting the Camera, Portal, or Mirror from the DevTool "Create New" dialog (Objects category) spawns a slot with various components including a QuadMesh and a BoxCollider. The Size property of the QuadMesh and BoxCollider are not linked, meaning that the collider dimensions will not match the visual if the Size property on either component is edited e.g. via the inspector.

To Reproduce

Equip a DevTool, open the context menu and press the "Create New" button. Spawn any of the Camera, Portal, or Mirror objects from the Objects submenu of the dialog. Note the lack of linking between Size fields on the QuadMesh and BoxCollider.

Expected behavior

I would expect the Size fields on QuadMesh and BoxCollider on these objects to be linked, e.g. via a Float2ToFloat3SwizzleDriver, to avoid potential mismatches between object colliders and visuals.

Screenshots

No response

Resonite Version Number

2023.10.13.743

What Platforms does this occur on?

Windows

What headset if any do you use?

HP Reverb G2, Desktop

Log Files

No response

Additional Context

No response

Reporters

No response

shiftyscales commented 6 months ago

This seems like it could be a simple and sensible tweak for these prefabs. Seeking input from @ProbablePrime.

ProbablePrime commented 3 months ago

EZpz