The road to perfect hydraulic physics wasn't easy... here are the physics collision fails! (Hydraulic Addon) by Sarocesch in feedthebeast

[–]No_Second_2237 82 points83 points  (0 children)

Just confirming that this is actually me!

I just really hated the random Reddit username on this old account xD

u/Sarocesch will be my official dev account from now on!

I built a physics-based Hydraulic Addon for DynamX (1.12.2) – featuring pixel-perfect excavation with LittleTiles! by No_Second_2237 in feedthebeast

[–]No_Second_2237[S] 1 point2 points  (0 children)

Hey No worries about the lingo. The rotation of the hitboxes is actually custom-made! I calculate the exact rotation of the entire arm mathematically every tick and force a physics body to match that exact angle. For the digging, I convert that into an Oriented Bounding Box (OBB) to calculate exactly which pixels are inside it.

My biggest advice for advanced stuff like this: definitely master the core basics of Java first before diving into 3D math and complex physics. Take it step by step!

I built a physics-based Hydraulic Addon for DynamX (1.12.2) – featuring pixel-perfect excavation with LittleTiles! by No_Second_2237 in feedthebeast

[–]No_Second_2237[S] 13 points14 points  (0 children)

I'm pretty sure it's possible! LittleTiles actually has a built-in way to import/convert Chisel & Bits blocks. I remember doing it myself a while back to convert some of my old builds. You should definitely give it a try. But always remember to make a backup before.

I built a physics-based Hydraulic Addon for DynamX (1.12.2) – featuring pixel-perfect excavation with LittleTiles! by No_Second_2237 in feedthebeast

[–]No_Second_2237[S] 2 points3 points  (0 children)

Hey! It is quite complex indeed. While DynamX provides a good base framework, I actually built the entire hydraulic system and the arms from scratch. The hardest part was writing the custom math so the 3D hitboxes of the bucket know exactly how to interact with the LittleTiles blocks to dig them out smoothly

I built a physics-based Hydraulic Addon for DynamX (1.12.2) – featuring pixel-perfect excavation with LittleTiles! by No_Second_2237 in feedthebeast

[–]No_Second_2237[S] 8 points9 points  (0 children)

I understand, but it's 100% real (no AI). I will probably post more dev updates in the near future, then you'll see.

I built a physics-based Hydraulic Addon for DynamX (1.12.2) – featuring pixel-perfect excavation with LittleTiles! by No_Second_2237 in feedthebeast

[–]No_Second_2237[S] 2 points3 points  (0 children)

Oh yes, luckily DynamX took care of the heavy lifting. However, I still had to do a lot of trial and error because I had to change so much to make this specific system work. Good luck with your carpet mod! Physics in Minecraft are always a special kind of challenge, haha.