Difference between revisions of "ReactPhysics3D"
From GiderosMobile
 (added debug draw)  | 
				|||
| Line 6: | Line 6: | ||
=== 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]].  | ||
| + | |||
| + | To add '''ReactPhysics3D engine''' to your application you call:  | ||
| + | <source lang="lua">  | ||
| + | require "reactphysics3d"  | ||
| + | </source>  | ||
Basically you:  | Basically you:  | ||
Revision as of 02:17, 13 December 2020
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2019.10
Description
ReactPhysics3D is an open source 3D physics and collision engine [React Physics 3D home page].
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