R3d.Fixture: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 5: Line 5:


=== Description ===
=== Description ===
A proxy shape is what links a given collision shape to the body it has been added.
A proxy shape (also called fixture in some other physics engines) 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. This concept is also called fixture in some other physics engines.
that particular body.
 
In ReactPhysics3D, a proxy shape is represented by the ProxyShape class.


{|-
{|-

Revision as of 04:53, 23 January 2020

Supported platforms:
Available since: Gideros 2019.10

Description

A proxy shape (also called fixture in some other physics engines) 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.

Methods

r3d.Fixture:setCollisionCategoryBits sets the categories of this fixture
r3d.Fixture:setCollideWithMaskBits sets the categories this fixture can collide with
r3d.Fixture:raycast performs a ray cast on the fixture
r3d.Fixture:testPointInside checks if a point is inside the fixture



ReactPhysics3D