Difference between revisions of "LiquidFun"

From GiderosMobile
m (added require)
m (added steps)
Line 13: Line 13:
  
 
'''Official documentation''': http://google.github.io/liquidfun/Programmers-Guide/html/index.html
 
'''Official documentation''': http://google.github.io/liquidfun/Programmers-Guide/html/index.html
 +
 +
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 ===
 
=== Classes ===

Revision as of 04:52, 5 November 2020

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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.

To add LiquidFun physics engine to your application you call;

require "liquidfun"

Official documentation: http://google.github.io/liquidfun/Programmers-Guide/html/index.html

Basically you:

  1. create the 2d world => B2.World.new
  2. create your body => B2.World
  3. define the shape of your body => example: a sphere B2.CircleShape
  4. add the fixture => B2.Body:createFixture
  5. add joints (optional) => B2.World:createJoint
  6. HAVE FUN!

Classes