Go to the documentation of this file.
41 categoryBits = 0x0001;
127 const b2Shape* GetShape()
const;
130 void SetSensor(
bool sensor);
134 bool IsSensor()
const;
139 void SetFilterData(
const b2Filter& filter);
142 const b2Filter& GetFilterData()
const;
150 const b2Body* GetBody()
const;
163 bool TestPoint(
const b2Vec2& p)
const;
178 void SetDensity(
float density);
181 float GetDensity()
const;
184 float GetFriction()
const;
188 void SetFriction(
float friction);
191 float GetRestitution()
const;
195 void SetRestitution(
float restitution);
198 float GetRestitutionThreshold()
const;
202 void SetRestitutionThreshold(
float threshold);
210 void Dump(
int32 bodyIndex);
void SetFriction(float friction)
virtual bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) const =0
void SetRestitutionThreshold(float threshold)
float GetDensity() const
Get the density of this fixture.
b2FixtureUserData userData
Use this to store application specific fixture data.
bool TestPoint(const b2Vec2 &p) const
const b2AABB & GetAABB(int32 childIndex) const
A rigid body. These are created via b2World::CreateBody.
float restitutionThreshold
virtual void ComputeMass(b2MassData *massData, float density) const =0
This proxy is used internally to connect fixtures to the broad-phase.
bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, int32 childIndex) const
float m_restitutionThreshold
void GetMassData(b2MassData *massData) const
float GetFriction() const
Get the coefficient of friction.
float restitution
The restitution (elasticity) usually in the range [0,1].
bool b2IsValid(float x)
This function is used to ensure that a floating point number is not a NaN or infinity.
float friction
The friction coefficient, usually in the range [0,1].
#define b2_lengthUnitsPerMeter
Define this macro in your build if you want to override settings.
b2Filter filter
Contact filtering data.
void SetDensity(float density)
This holds contact filtering data.
b2FixtureUserData & GetUserData()
You can define this to inject whatever data you want in b2Fixture.
float density
The density, usually in kg/m^2.
b2FixtureUserData m_userData
void SetRestitution(float restitution)
float GetRestitutionThreshold() const
Get the restitution velocity threshold.
b2FixtureProxy * m_proxies
An axis aligned bounding box.
virtual bool TestPoint(const b2Transform &xf, const b2Vec2 &p) const =0
float GetRestitution() const
Get the coefficient of restitution.
b2Shape::Type GetType() const
uint16 categoryBits
The collision category bits. Normally you would just set one bit.
This holds the mass data computed for a shape.
b2FixtureDef()
The constructor sets the default fixture definition values.
const b2Transform & GetTransform() const
const b2Filter & GetFilterData() const
Get the contact filtering data.
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:07