Particle Based Physics Engine in Golang
github.com
github.com
please leave a star if you like or feedback if you dont , I am soo happy finally after a year of learning all those stuff I made this , also I am terrible at code , so i used ai for that (not everytime) and my physics and maths skills for logic building and improvements....
I am new to this , please any advice can help me .... Thanks for reading and giving your precious time to me .....
Let the tooling figure out the formatting, just sweat the syntax. And build whatever you can!
For example, you could add 3D vectors. I would do them in Cartesian (x,y,z) form first but you'll really learn a lot when you add spherical and cylindrical form. Cylindrical form is also identical to the other main 2D form for vectors (polar)[1]. Spherical coordinates are very useful for modelling certain vector fields (eg gravity) that are spherically symmetrical. Cylindrical coordinates are useful for things like the temperature distribution around a hot pipe or something like that. Polar coordinates are great for representing rotating systems, which will be a real challenge but you will learn an incredible amount from.
To get the background knowledge, I would check out MIT8.01 Mechanics online[2]. It is really excellent and you will learn a lot from it. Some of it you may find hard, but it is deliberately formulated so doesn't have any really advanced maths prerequisites (eg differential equations are kept to a minimum) and the presentation is really clear so if you're motivated you should learn an amazing amount. There is a free textbook included in the course website which covers all the underlying maths.
[1] Cylindrical form just has a z coordinate. If you set that to 0 it is effectively Polar in the x,y plane.
[2] https://ocw.mit.edu/courses/8-01sc-classical-mechanics-fall-...
Interesting to see Go getting some game development love.