Difference between revisions of "ReactPhysics3D"

From GiderosMobile
Line 8: Line 8:
  
 
Basically you:
 
Basically you:
# '''create the 3d world'''
+
# '''create the 3d world''' '''[[R3d.World.new]]'''
# '''create your body'''
+
# '''create your body''' '''[[R3d.World:createBody]]'''
# '''define the shape of your body'''
+
# '''define the shape of your body''' example a sphere '''[[R3d.SphereShape.new]]'''
# '''add the fixture'''
+
# '''add the fixture''' '''[[R3d.Body:createFixture]]'''
# '''add joints (optional)'''
+
# '''add joints (optional)''' '''[[R3d.World:createFixedJoint]]'''
 +
# ''' HAVE FUN! '''
  
 
=== Classes ===
 
=== Classes ===

Revision as of 00:54, 19 February 2020

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2019.10

Description

ReactPhysics3D is an open source 3D physics and collision engine [React Physics 3D home page].

Basically you:

  1. create the 3d world R3d.World.new
  2. create your body R3d.World:createBody
  3. define the shape of your body example a sphere R3d.SphereShape.new
  4. add the fixture R3d.Body:createFixture
  5. add joints (optional) R3d.World:createFixedJoint
  6. HAVE FUN!

Classes