vertxxyz / Vertx.Debugging

Debugging utilities for Unity
MIT License
508 stars 33 forks source link

Render Collider2D at actual transform position #21

Closed rhys-vdw closed 10 months ago

rhys-vdw commented 10 months ago

Is there any chance drawing a collider2D at the actual transform position, including z, would be possible?

Supporting z position for my project is essential, so if you're not interested in the feature, perhaps you could help me understand how this is zeroing the z position? Then I can make my own forked IDrawables.

https://github.com/vertxxyz/Vertx.Debugging/blob/4986c28517ace563c06985334bf4b17429aa5997/Runtime/Shapes/Shapes.2D.cs#L258-L263

rhys-vdw commented 10 months ago

Whoops, how embarassing. It is rendering at the correct position (I had the transform changing position). that explains why the code above looks like it's setting the Z correctly. 😅