Difference between revisions of "R3d.World"

From GiderosMobile
Line 9: Line 9:
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
 
[[Special:MyLanguage/r3d.World.new|r3d.World.new]] ''<translate>create a new world</translate>''<br/><!-- GIDEROSMTD:r3d.World.new(gravityX,gravityY,gravityZ) create a 3D physics world -->
 
[[Special:MyLanguage/r3d.World.new|r3d.World.new]] ''<translate>create a new world</translate>''<br/><!-- GIDEROSMTD:r3d.World.new(gravityX,gravityY,gravityZ) create a 3D physics world -->
[Special:MyLanguage/r3d.World:createBody|r3d.World:createBody]] ''<translate>create a new body</translate>''<br/><!-- GIDEROSMTD:r3d.World:createBody(transform) create a new body -->
+
[[Special:MyLanguage/r3d.World:createBody|r3d.World:createBody]] ''<translate>create a new body</translate>''<br/><!-- GIDEROSMTD:r3d.World:createBody(transform) create a new body -->
 
[[Special:MyLanguage/r3d.World:destroyBody|r3d.World:destroyBody]] ''<translate>destroy a body</translate>''<br/><!-- GIDEROSMTD:r3d.World:destroyBody(body) destroy a body -->
 
[[Special:MyLanguage/r3d.World:destroyBody|r3d.World:destroyBody]] ''<translate>destroy a body</translate>''<br/><!-- GIDEROSMTD:r3d.World:destroyBody(body) destroy a body -->
 
[[Special:MyLanguage/r3d.World:step|r3d.World:step]] ''<translate>Step the world</translate>''<br/><!-- GIDEROSMTD:r3d.World:step(time) step the world -->
 
[[Special:MyLanguage/r3d.World:step|r3d.World:step]] ''<translate>Step the world</translate>''<br/><!-- GIDEROSMTD:r3d.World:step(time) step the world -->

Revision as of 11:27, 8 October 2019


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

Description

Methods

r3d.World.new create a new world
r3d.World:createBody create a new body
r3d.World:destroyBody destroy a body
r3d.World:step Step the world
r3d.World:raycast perform a ray cast on the world
r3d.World:testOverlap check if two bodies overlap
r3d.World:testAABBOverlap check if two bodies AABB overlap
r3d.World:testCollision check collisions
r3d.World:setEventListener set the event listener for collisions in the world
r3d.World:createBallAndSocketJoint
r3d.World:createHingeJoint
r3d.World:createSliderJoint
r3d.World:createFixedJoint
r3d.World:destroyJoint destroy a joint