Yup I’ve been using
BABYLON.MeshBuilder.CreateLineSystem()
for Bullet and PhysX lines.
I wouldn’t worry about triangles. If Havok is like Bullet and PhysX, they both call the lines function (3 times - once per triangle line) inside of the triangle function. So the mesh triangles are already included in the debug lines, thus we don’t even need to deal with triangles - only lines.
I will create a minimal Playground showing Ammo’s Debug Drawer, which should make it clearer how powerful and simple to use these lines are. Please give me a few days for this
In the meantime, there’s @arcman7 's PG that uses the Ammo Debug Drawer. Please note in this PG, the lines are rendered as points (instead of lines)