Recently, I’ve been trying to create a physics engine, but I can’t quite get the bouncing right. I believe it has something to do with the collision system, because I don’t exactly know how to fix that.
Yes, despite my library-creating mentality, I still make normal projects.
But what if I make this a library too?
Here’s the project. I hope you can help me find out the issue!
I do the same thing a lot with making extremely complex math available to anyone. It’s a fun mentality!
Before taking a look at the actual code, I’m assuming it’s something to do with angular velocity calculations. Typically, I (personally) would look at another project for an answer and to learn where I went wrong.
Here’s a physics engine I made a bit ago with comments that should help a bit while I look at your code
After looking at the code and experimenting I can see I was WAY off. I did try adjusting the math, but to my avail wasn’t able to fix anything. I will continue trying to fix the math and trigonometry.