R3d.World.new

From GiderosMobile
Revision as of 06:01, 21 January 2020 by MoKaLux (talk | contribs) (Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.World<br/> === Description === Creates a new ReactPhysics3D dynamics world. <source lang="lua"> r3d.World.new...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.10
Class: R3d.World

Description

Creates a new ReactPhysics3D dynamics world.

r3d.World.new(gravityX, gravityY, gravityZ)

Parameters

gravityX: (number) the gravity on the X axis (m/s^2)
gravityY: (number) the gravity on the Y axis (m/s^2)
gravityZ: (number) the gravity on the Z axis (m/s^2)

Example

r3d = require "reactphysics3d"
local world = r3d.World.new(0, -9.8, 0)