You can take a quick overview of the Box 2D liquid physics. You can see how to set things like viscosity so that your liquids act like water or oil.
- [Instructor] The box 2D physics engine has a special set…of functions to simulate liquids using particles.…You can set the particle properties…like surface tension, and viscosity…to simulate things like water,…oils, and even gels.…This Google page has some great examples…and let's take a look.…In the test bed section here…we can see wave machines simulating…water particles.…Selecting the elastic particles option…we can see here that several objects are created…of particles that are attached to each other…but not rigidly.…
That makes for fun things like gels.…Selecting the soup option…we can see that the objects of various densities…inside of the liquid float to the top at different speeds.…And since the particles participate in the physics…simulation, they can be used to move objects around…like in this sparky demonstration here.…And if we set the particles up to have surface tension…they can act like water like this,…where objects can float on the top.…You can do some really really fun stuff…with liquid simulations…
- Setting up basic game components
- Creating the player object
- Using Finite State Machines
- Making the player duck
- Creating physics fixtures in code
- Creating physics obstacles
- Box2D liquid physics
- Creating particles that behave like water
- Creating a floating blocks obstacle
- Creating a swinging chain obstacle and a rope bridge
- Adding the finishing touches
Skill Level Beginner
1. Set Up Basic Game Components
2. The Player Object
3. Create Physics Obstacles
4. Liquid Physics
5. Decorate the Level
6. Finishing Touches
Next steps1m 2s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.