Difference between revisions of "R3d.Fixture"
From GiderosMobile
(update to r3d v0.8) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | <!-- GIDEROSOBJ:r3d.Fixture --> | + | <!--GIDEROSOBJ:r3d.Fixture--> |
− | ''' | + | '''Supported platforms:''' [[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/> |
− | ''' | + | '''Available since:''' Gideros 2019.10<br/> |
=== Description === | === Description === | ||
A proxy shape (also called fixture) is what links a given collision shape to the body it has been added. | A proxy shape (also called fixture) is what links a given collision shape to the body it has been added. | ||
− | You can use the returned proxy shape to get or set parameters of the given collision shape in | + | You can use the returned proxy shape to get or set parameters of the given collision shape in that particular body. |
− | that particular body. | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
− | [[ | + | [[r3d.Fixture:getMaterial]] ''gets the fixture material''<br/><!--GIDEROSMTD:r3d.Fixture:getMaterial() gets the fixture material--> |
− | [[ | + | [[r3d.Fixture:raycast]] ''performs a ray cast on the fixture''<br/><!--GIDEROSMTD:r3d.Fixture:raycast(sx,sy,sz,ex,ey,ez) performs a ray cast on the fixture--> |
− | [[ | + | [[r3d.Fixture:setCollideWithMaskBits]] ''sets the categories this fixture can collide with''<br/><!--GIDEROSMTD:r3d.Fixture:setCollideWithMaskBits(bits) sets the categories this fixture can collide with--> |
− | [[ | + | [[r3d.Fixture:setCollisionCategoryBits]] ''sets the fixture collision category bit''<br/><!--GIDEROSMTD:r3d.Fixture:setCollisionCategoryBits(bits) sets the fixture collision category bit--> |
+ | [[r3d.Fixture:setMaterial]] ''sets the fixture material''<br/><!--GIDEROSMTD:r3d.Fixture:setMaterial(mat) sets the fixture material--> | ||
+ | [[r3d.Fixture:testPointInside]] ''checks if a point is inside the fixture''<br/><!--GIDEROSMTD:r3d.Fixture:testPointInside(x,y,z) checks if a point is inside the fixture--> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| |
Latest revision as of 21:58, 17 December 2020
Supported platforms:
Available since: Gideros 2019.10
Description
A proxy shape (also called fixture) is what links a given collision shape to the body it has been added.
You can use the returned proxy shape to get or set parameters of the given collision shape in that particular body.
Methodsr3d.Fixture:getMaterial gets the fixture material |