Difference between revisions of "LiquidFun"
From GiderosMobile
m (added steps) |
m |
||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
− | LiquidFun physics engine, is a 2D rigid-body and fluid simulation C++ engine based on '''Box2D'''. The fluid simulation was implemented by Google. | + | LiquidFun physics engine, is a 2D rigid-body and fluid simulation C++ engine based on '''Box2D'''. The fluid simulation was implemented by Google '''http://google.github.io/liquidfun/Programmers-Guide/html/index.html'''. |
− | To add LiquidFun physics engine to your application you call | + | To add LiquidFun physics engine to your application you call: |
<source lang="lua"> | <source lang="lua"> | ||
require "liquidfun" | require "liquidfun" | ||
</source> | </source> | ||
− | |||
− | |||
Basically you: | Basically you: |
Revision as of 04:54, 5 November 2020
Supported platforms:
Available since: Gideros 2011.6
Description
LiquidFun physics engine, is a 2D rigid-body and fluid simulation C++ engine based on Box2D. The fluid simulation was implemented by Google http://google.github.io/liquidfun/Programmers-Guide/html/index.html.
To add LiquidFun physics engine to your application you call:
require "liquidfun"
Basically you:
- create the 2d world => B2.World.new
- create your body => B2.World
- define the shape of your body => example: a sphere B2.CircleShape
- add the fixture => B2.Body:createFixture
- add joints (optional) => B2.World:createJoint
- HAVE FUN!
Classes
b2 (Joint defs, ...)
b2.Body
b2.Contact
b2.DebugDraw
b2.Fixture
b2.Joint
b2.Manifold
b2.ParticleSystem
b2.Shape
b2.World
b2.WorldManifold