Presentation is loading. Please wait.

Presentation is loading. Please wait.

Angry Marbles physics of the Angry Birds Games Fundamentals © by Jarek Francik Kingston University, London 2013.

Similar presentations


Presentation on theme: "Angry Marbles physics of the Angry Birds Games Fundamentals © by Jarek Francik Kingston University, London 2013."— Presentation transcript:

1 Angry Marbles physics of the Angry Birds Games Fundamentals © by Jarek Francik Kingston University, London 2013

2 Using Engines For a Game Developer: There is no escape from programming – games don’t write themselves There is no escape from maths – engines can’t solve all problems! There is a kind of escape from physics but...

3 Physics Engine You can easily do simple stuff Physics engines are still complex and your knowledge in physics will help to master them You can hardly reach the full potential of the physics engine unless you understand physics Many less-trivial physical effects require significant additional effort from the developer and therefore – good understanding of physics

4 Physics and Employability Serious games companies are looking for developers who can build sophisticated physical models! Understanding physics enhances your employability

5 Box2D Open source 2D physics engine written by Erin Catto zlib license Productions: – Angry Birds, Crayon Physics, Limbo, Rolando Tiny Wings, Happy Wheels, Little Caveman and many more...

6 Box2D World Body Shape Fixture Joint

7 Box2D World – creates and destroys physical bodies – performs the simulation steps – provides gravitational field Body Shape Fixture Joint

8 Box2D World Body – physical entity, subjects to simulation – detects collisions – responses to forces, impulses, torques etc. – provides position and rotation data Shape Fixture Joint

9 Box2D World Body Shape – geometry provider: polygons (incl. rectangles) circles edges and chains Fixture Joint

10 Box2D World Body Shape Fixture – attaches a shape to a body – provides physical attributes: density (necessary to calculate mass and inertia) friction restitution Joint

11 Box2D World Body Shape Fixture Joint – provides joined or chained objects like ragdolls, teeters and pulleys

12 Box2D Units: – meter – kilogram – second GFC implementation: 1 meter = 100 pixels Scale matters!

13 Demo: Angry Marbles!


Download ppt "Angry Marbles physics of the Angry Birds Games Fundamentals © by Jarek Francik Kingston University, London 2013."

Similar presentations


Ads by Google