Physics and Stuff | Cocoa Engine Devlog #4

Channel:
Subscribers:
59,400
Published on ● Video Link: https://www.youtube.com/watch?v=YuFeKY0KVrU



Duration: 11:18
367 views
0


In this episode, I get simple box physics added to the game engine. I explain a little bit of how I do spatial partitioning and how I calculate physics between dynamic objects and static objects. The physics system that I use is just doing box collision detection and resolution. For forces, I add sum over all the forces acting on each object, and add the resulting force to the object.

I also go over my animation system and how I use finite state machines to create a flexible animation system. I explain how I use a combination of an AnimationMachine and several Animations to create one big Animator for any game object.

---------------------------------------------------------------------
Website: https://ambrosiogabe.github.io/
Github: https://github.com/ambrosiogabe




Other Videos By GamesWithGabe


2020-04-22Game Camera OpenGL | Coding a 2D Game Engine in Java #7
2020-04-20Moving the Ball | Java Pong Part 6a
2020-04-17Regexes and Shader Abstraction | Coding a 2D Game Engine in Java #6
2020-04-13Drawing the First Square | Coding a 2D Game Engine in Java #5
2020-04-10How OpenGL Graphics Programming Works | Coding a 2D Game Engine in Java #4
2020-04-08Creating a Scene Manager & Delta Time Variable | Coding a 2D Game Engine in Java #3
2020-04-03Adding Event Listeners with GLFW | Coding a 2D Game Engine in Java #2
2020-03-31Setting up the Window with LWJGL | Coding a 2D Game Engine in Java #1
2020-03-31Intro | Coding a 2D Game Engine in Java #0
2020-03-26Completing Mario | Cocoa Engine Devlog #5
2020-03-22Physics and Stuff | Cocoa Engine Devlog #4
2020-03-17LWJGL, Batching, and Font Rendering | Cocoa Engine Devlog #3
2020-03-06Bug Fixing | Coding Geometry Dash in Java #30
2020-03-04Box Triggers and Portals | Coding Geometry Dash in Java #29
2020-02-28Box-Select, Deleting, and Rotating Selected Objects | Coding Geometry Dash in Java #28
2020-02-26Duplication and Moving Selected Objects | Coding Geometry Dash in Java #27
2020-02-24Switching Languages | Cocoa Engine Devlog #2
2020-02-21Multi-Select in Level Editor | Coding Geometry Dash in Java #26
2020-02-19Triangle vs. Box Collision Detection | Coding Geometry Dash in Java #25
2020-02-17Why Minecraft is a Technical Feat | Explaining the Engineering Behind an Indie Icon
2020-02-14Triangle vs. Box Collision Detection Theory | Coding Geometry Dash in Java #24



Tags:
gameswithgabe
games with gabe
jade
game devlog
game physics
box physics
game animation
sprite animation
game engine
game engine development
game engine devlog
mario
mario physics
mario game
how to make mario
java
java game engine
lwjgl
java game development