axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
868 stars 195 forks source link

DebugDraw issue in 3D physics test #1726

Closed 10100010010001001010 closed 6 months ago

10100010010001001010 commented 7 months ago

DebugDrawBug DebugDrawBug2 DebugDrawBug3

solan-solan commented 6 months ago

Look's like Physics3DDebugDrawer should use V3F_C4F struct for _buffer vector instead of V3F_V4F since they have different sizes (28 vs 32), but PositionColor shader expect the first for stride, or may be some another way to resolve. It is definitely alignment issue