😎
Specifically to avoid the fact that attachment constraints keep things at fixed distance.
Now you just need to add springs, hinges, ball in sockets and prismatic
Not that hard, you have to:
generate a list of points that form a list of quads following the line (you can use a 2nd degree polynomial equation for that, the math is relatively easy and can be quickly found online
send that list of points to MC (you don’t have to handle that directly by using OpenGL, there is stuff in MC for that like vertexbuffers, bufferbuilder etc…
Make sure the correct shader and texture is bound, there is also functions for that
Make sure that you do the draw at the right time (during game render, not game update)
Probably the hardest part is figuring out when to draw the thing, and what functions to use
Also don’t hesitate to look at other mods which do similar things in term of rendering
Like Create has some stuff to render the in-world UI for things like motor speed that could be interesting
1 reply not shown · View on Discord
:3dsmile:
IMG_1112.png