Get the contact filtering data.
Filter data.
Get the mass data for this fixture. The mass data is based on the density and the shape. The rotational inertia is about the shape's origin. This operation may be expensive.
Optional
massData: b2MassDataThis is a reference to a valid b2MassData, if it is null a new b2MassData is allocated and then returned. Default = null.
Mass data.
Perform a ray cast against this shape.
Ray cast results. This argument is out.
Ray cast input parameters.
True if the ray hits the shape, otherwise false.
A fixture is used to attach a shape to a body for collision detection. A fixture inherits its transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc. Fixtures are created via b2Body::CreateFixture.
Warning
you cannot reuse fixtures.