Difference between revisions of "R3d.World"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:r3d.World --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.pngFile:Platform m...")
 
Line 22: Line 22:
 
[[Special:MyLanguage/r3d.World.destroyJoint|r3d.World.destroyJoint]] ''<translate>destroy a joint</translate>''<br/><!-- GIDEROSMTD:r3d.World.destroyBody(joint) destroy a joint -->
 
[[Special:MyLanguage/r3d.World.destroyJoint|r3d.World.destroyJoint]] ''<translate>destroy a joint</translate>''<br/><!-- GIDEROSMTD:r3d.World.destroyBody(joint) destroy a joint -->
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Constants</translate> ===
 
[[Special:MyLanguage/r3d.World.DYNAMIC_BODY|r3d.World.DYNAMIC_BODY]]<br/><!-- GIDEROSCST:r3d.World.DYNAMIC_BODY 2-->
 
[[Special:MyLanguage/r3d.World.KINEMATIC_BODY|r3d.World.KINEMATIC_BODY]]<br/><!-- GIDEROSCST:r3d.World.KINEMATIC_BODY 1-->
 
[[Special:MyLanguage/r3d.World.STATIC_BODY|r3d.World.STATIC_BODY]]<br/><!-- GIDEROSCST:r3d.World.STATIC_BODY 0-->
 
 
|}
 
|}

Revision as of 10:23, 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.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