Approach to dynamically "draw" mesh in space

I’m currently researching how to dynamically draw a mesh (think of it as a tube or line with volume) in space based on input but have troubles finding the right to approach to actually create and update the mesh.

I was thinking of using a SkinnedMesh and dynamically updating the Skeleton / Bones but find the API confusing since the bones’ positions seem to be based on the previous bone in the skeleton instead of world space.

Do you have any hint for me on how to draw dynamic lines with volume and standard materials?

I made a bumblebee with bones some time ago. Maybe this will help.

https://codepen.io/hofk/pen/eWdZMb

Also to be found in the collection

1 Like