Difference between revisions of "ReactPhysics3D"

From GiderosMobile
(removed remaining language stuff)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<!-- GIDEROSOBJ:ReactPhysics3D-->
 
<!-- GIDEROSOBJ:ReactPhysics3D-->
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]][[File:Platform linux.png]]<br/>
 
'''Available since:''' Gideros 2019.10<br/>
 
'''Available since:''' Gideros 2019.10<br/>
  
 
=== Description ===
 
=== Description ===
ReactPhysics3D is an open source 3D physics and collision engine [[https://www.reactphysics3d.com/ React Physics 3D home page]].
+
ReactPhysics3D is an open source 3D physics and collision engine [[https://www.reactphysics3d.com/ React Physics 3D home page]] (not up to date!).
 +
 
 +
You can also check '''[[https://github.com/DanielChappuis/reactphysics3d React Physics 3D GitHub]]'''.
 +
 
 +
Official '''[[https://github.com/DanielChappuis/reactphysics3d/blob/master/documentation/UserDocumentation.md React Physics 3D documentation]]'''.
 +
 
 +
Changelog '''[[https://github.com/DanielChappuis/reactphysics3d/blob/master/CHANGELOG.md?plain=1 React Physics 3D Changelog]]'''.
 +
 
 +
 
 +
'''Gideros ReactPhysics3D version is version 0.10.2'''.
  
 
To add '''ReactPhysics3D engine''' to your application you call:
 
To add '''ReactPhysics3D engine''' to your application you call:
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
require "reactphysics3d"
 
require "reactphysics3d"
</source>
+
</syntaxhighlight>
  
 
Basically you:
 
Basically you:

Latest revision as of 12:06, 16 December 2025

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

Description

ReactPhysics3D is an open source 3D physics and collision engine [React Physics 3D home page] (not up to date!).

You can also check [React Physics 3D GitHub].

Official [React Physics 3D documentation].

Changelog [React Physics 3D Changelog].


Gideros ReactPhysics3D version is version 0.10.2.

To add ReactPhysics3D engine to your application you call:

require "reactphysics3d"

Basically you:

  1. create the 3d world => r3d.World.new
  2. add the 3d world DebugDraw (recommended for testing) => r3d.DebugDraw.new
  3. create your body => r3d.World:createBody
  4. define the shape of your body => example: a sphere r3d.SphereShape.new
  5. add the fixture => r3d.Body:createFixture
  6. add joints (optional) => example: a fixed joint r3d.World:createFixedJoint
  7. HAVE FUN!

Classes