Difference between revisions of "R3d.Fixture"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:r3d.Fixture --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.pngFile:Platform...") |
(update to r3d v0.8) |
||
(7 intermediate revisions by the same user not shown) | |||
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 === |
+ | 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. | ||
+ | |||
{|- | {|- | ||
| 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;"| | ||
|} | |} | ||
+ | |||
+ | ---- | ||
+ | '''[[ReactPhysics3D]]''' |
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 |