Difference between revisions of "R3d.Body"
Line 4: | Line 4: | ||
'''<translate>Supported platforms</translate>:''' [[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/> | '''<translate>Supported platforms</translate>:''' [[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/> | ||
'''<translate>Available since</translate>:''' Gideros 2019.10<br/> | '''<translate>Available since</translate>:''' Gideros 2019.10<br/> | ||
+ | |||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
+ | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/r3d.Body:createFixture|r3d.Body:createFixture]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:createFixture|r3d.Body:createFixture]] ''<translate>creates a new fixture</translate>''<br/> |
− | [[Special:MyLanguage/r3d.Body:destroyFixture|r3d.Body:destroyFixture]] ''<translate> | + | <!-- GIDEROSMTD:r3d.Body:createFixture(shape,transform,mass) creates a new fixture --> |
− | [[Special:MyLanguage/r3d.Body:getTransform|r3d.Body:getTransform]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:destroyFixture|r3d.Body:destroyFixture]] ''<translate>destroys a fixture</translate>''<br/> |
− | [[Special:MyLanguage/r3d.Body:setTransform|r3d.Body:setTransform]] ''<translate> | + | <!-- GIDEROSMTD:r3d.Body:destroyFixture(fixture) destroys a fixture --> |
− | [[Special:MyLanguage/r3d.Body:getMaterial|r3d.Body:getMaterial]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:getTransform|r3d.Body:getTransform]] ''<translate>gets the body transform (position and rotation) matrix</translate>''<br/> |
− | [[Special:MyLanguage/r3d.Body:setMaterial|r3d.Body:setMaterial]] ''<translate> | + | <!-- GIDEROSMTD:r3d.Body:getTransform() gets the body transform (position and rotation) matrix--> |
− | [[Special:MyLanguage/r3d.Body:setType|r3d.Body:setType]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:setTransform|r3d.Body:setTransform]] ''<translate>sets the body transform matrix</translate>''<br/> |
− | [[Special:MyLanguage/r3d.Body:enableGravity|r3d.Body:enableGravity]] ''<translate> | + | <!-- GIDEROSMTD:r3d.Body:setTransform(transform) sets the body transform matrix --> |
− | [[Special:MyLanguage/r3d.Body:setIsAllowedToSleep|r3d.Body:setIsAllowedToSleep]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:getMaterial|r3d.Body:getMaterial]] ''<translate>gets the body material</translate>''<br/> |
− | [[Special:MyLanguage/r3d.Body:applyForce|r3d.Body:applyForce]] ''<translate> | + | <!-- GIDEROSMTD:r3d.Body:getMaterial() gets the body material --> |
− | [[Special:MyLanguage/r3d.Body:applyTorque|r3d.Body:applyTorque]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:setMaterial|r3d.Body:setMaterial]] ''<translate>sets the body material</translate>''<br/> |
− | [[Special:MyLanguage/r3d.Body:raycast|r3d.Body:raycast]] ''<translate> | + | <!-- GIDEROSMTD:r3d.Body:setMaterial(material) sets the body material --> |
− | [[Special:MyLanguage/r3d.Body:testPointInside|r3d.Body:testPointInside]] ''<translate> | + | [[Special:MyLanguage/r3d.Body:setType|r3d.Body:setType]] ''<translate>sets the body type</translate>''<br/> |
+ | <!-- GIDEROSMTD:r3d.Body:setType(type) sets the body type --> | ||
+ | [[Special:MyLanguage/r3d.Body:enableGravity|r3d.Body:enableGravity]] ''<translate>enables or disables gravity of the body</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:r3d.Body:enableGravity(enable) enables or disables gravity of the body --> | ||
+ | [[Special:MyLanguage/r3d.Body:setIsAllowedToSleep|r3d.Body:setIsAllowedToSleep]] ''<translate>allows or disallows a body to sleep</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:r3d.Body:setIsAllowedToSleep(allowed) allows or disallows a body to sleep --> | ||
+ | [[Special:MyLanguage/r3d.Body:applyForce|r3d.Body:applyForce]] ''<translate>applies a force to this body</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:r3d.Body:applyForce(forcX,forceY,forceZ[,pointX,pointY,pointZ]) applies a force to this body --> | ||
+ | [[Special:MyLanguage/r3d.Body:applyTorque|r3d.Body:applyTorque]] ''<translate>applies a torque to this body</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:r3d.Body:applyTorque(torqueX,torqueY,torqueZ) applies a torque to this body --> | ||
+ | [[Special:MyLanguage/r3d.Body:raycast|r3d.Body:raycast]] ''<translate>performs a ray cast on the body</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:r3d.Body:raycast(sx,sy,sz,ex,ey,ez) performs a ray cast on the body --> | ||
+ | [[Special:MyLanguage/r3d.Body:testPointInside|r3d.Body:testPointInside]] ''<translate>checks if a point is inside the body</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:r3d.Body:testPointInside(x,y,z) checks if a point is inside the body --> | ||
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
− | [[Special:MyLanguage/r3d.Body.DYNAMIC_BODY|r3d.Body.DYNAMIC_BODY]]<br/><!-- GIDEROSCST:r3d.Body.DYNAMIC_BODY 2--> | + | [[Special:MyLanguage/r3d.Body.DYNAMIC_BODY|r3d.Body.DYNAMIC_BODY]]<br/> |
− | [[Special:MyLanguage/r3d.Body.KINEMATIC_BODY|r3d.Body.KINEMATIC_BODY]]<br/><!-- GIDEROSCST:r3d.Body.KINEMATIC_BODY 1--> | + | <!-- GIDEROSCST:r3d.Body.DYNAMIC_BODY 2--> |
− | [[Special:MyLanguage/r3d.Body.STATIC_BODY|r3d.Body.STATIC_BODY]]<br/><!-- GIDEROSCST:r3d.Body.STATIC_BODY 0--> | + | [[Special:MyLanguage/r3d.Body.KINEMATIC_BODY|r3d.Body.KINEMATIC_BODY]]<br/> |
+ | <!-- GIDEROSCST:r3d.Body.KINEMATIC_BODY 1--> | ||
+ | [[Special:MyLanguage/r3d.Body.STATIC_BODY|r3d.Body.STATIC_BODY]]<br/> | ||
+ | <!-- GIDEROSCST:r3d.Body.STATIC_BODY 0--> | ||
|} | |} |
Revision as of 06:33, 22 January 2020
Supported platforms:
Available since: Gideros 2019.10
Description
Methodsr3d.Body:createFixture creates a new fixture |
Constantsr3d.Body.DYNAMIC_BODY |