Difference between revisions of "ReactPhysics3D"
From GiderosMobile
| (13 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | <!-- GIDEROSOBJ:ReactPhysics3D--> | |
| − | <!-- GIDEROSOBJ: | + | '''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/> |
| − | ''' | + | '''Available since:''' Gideros 2019.10<br/> |
| − | ''' | + | |
| − | === | + | === Description === |
| − | + | ReactPhysics3D is an open source 3D physics and collision engine [[https://www.reactphysics3d.com/ React Physics 3D home page]] (not up to date!). | |
| − | [[https:// | + | |
| − | < | + | 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: | ||
| + | <syntaxhighlight lang="lua"> | ||
| + | require "reactphysics3d" | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | Basically you: | ||
| + | # '''create the 3d world''' => [[r3d.World.new]] | ||
| + | # '''add the 3d world DebugDraw (recommended for testing)''' => [[r3d.DebugDraw.new]] | ||
| + | # '''create your body''' => [[r3d.World:createBody]] | ||
| + | # '''define the shape of your body''' => example: a sphere [[r3d.SphereShape.new]] | ||
| + | # '''add the fixture''' => [[r3d.Body:createFixture]]''' | ||
| + | # '''add joints (optional)''' => example: a fixed joint [[r3d.World:createFixedJoint]] | ||
| + | # ''' HAVE FUN! ''' | ||
| + | |||
| + | === Classes === | ||
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> | ||
| − | <!-- GIDEROSOBJ:r3d. | + | [[r3d.Body]]<br/><!--GIDEROSOBJ:r3d.Body--> |
| − | <!-- GIDEROSOBJ:r3d. | + | [[r3d.DebugDraw]]<br/><!--GIDEROSOBJ:r3d.DebugDraw--> |
| − | <!-- GIDEROSOBJ:r3d. | + | [[r3d.Fixture]]<br/><!--GIDEROSOBJ:r3d.Fixture--> |
| − | <!-- GIDEROSOBJ:r3d. | + | [[r3d.Joint]]<br/><!--GIDEROSOBJ:r3d.Joint--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.FixedJoint]]<br/>--><!--GIDEROSOBJ:r3d.FixedJoint--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.HingeJoint]]<br/>--><!--GIDEROSOBJ:r3d.HingeJoint--> |
| − | <!-- GIDEROSOBJ:r3d. | + | [[r3d.Shape]]<br/><!--GIDEROSOBJ:r3d.Shape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.BallAndSocketShape]]<br/>--><!--GIDEROSOBJ:r3d.BallAndSocketShape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.BoxShape]]<br/>--><!--GIDEROSOBJ:r3d.BoxShape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.CapsuleShape]]<br/>--><!--GIDEROSOBJ:r3d.CapsuleShape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.ConcaveMeshShape]]<br/>--><!--GIDEROSOBJ:r3d.ConcaveMeshShape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.ConvexMeshShape]]<br/>--><!--GIDEROSOBJ:r3d.ConvexMeshShape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.HeightFieldShape]]<br/>--><!--GIDEROSOBJ:r3d.HeightFieldShape--> |
| − | <!-- GIDEROSOBJ:r3d. | + | <!--[[r3d.SphereShape]]<br/>--><!--GIDEROSOBJ:r3d.SphereShape--> |
| + | [[r3d.World]]<br /><!--GIDEROSOBJ:r3d.World--> | ||
</div> | </div> | ||
| + | |||
| + | {{GIDEROS IMPORTANT LINKS}} | ||
Latest revision as of 01:56, 15 December 2025
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
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:
- create the 3d world => r3d.World.new
- add the 3d world DebugDraw (recommended for testing) => r3d.DebugDraw.new
- create your body => r3d.World:createBody
- define the shape of your body => example: a sphere r3d.SphereShape.new
- add the fixture => r3d.Body:createFixture
- add joints (optional) => example: a fixed joint r3d.World:createFixedJoint
- HAVE FUN!
Classes