LWJGL 3 2D Game Engine (Collision) #56

Опубликовано: 25 Март 2026
на канале: Josyah Dooley
474
6

In this episode we go over collision detection and how to resolve that collision. I'm going to be creating a new method of obb collision in the future so I had to settle with bounding area aabb collision for now, sorry guys. We also add a z component and add depth to the fbo so we can choose the rendering order.

Edit: Just realized there is collision issues when loading the scene more than once in one instance. after calling GameObject.Recalculate() in the SceneManager on line 74, you have to reset the dirty on all gameobjects in the scene

That will reset the objects dirty after resetting the scene

  / ocularcash   Having troubles? You can download the most up to date source from my patreon for $1 a month.

  / ocularcash   You can send me a message on twitter with any questions you may have.

Dont have twitter? You can also find me on discord:   / discord  

Josyah Dooley