19 #ifndef B2_FRICTION_JOINT_H
20 #define B2_FRICTION_JOINT_H
22 #include <Box2D/Dynamics/Joints/b2Joint.h>
29 type = e_frictionJoint;
100 float32 m_angularImpulse;
116 float32 m_angularMass;
float32 maxTorque
The maximum friction torque in N-m.
Definition: b2FrictionJoint.h:50
b2Body * bodyA
The first attached body.
Definition: b2Joint.h:92
const b2Vec2 & GetLocalAnchorB() const
The local anchor point relative to bodyB's origin.
Definition: b2FrictionJoint.h:68
b2Vec2 localAnchorB
The local anchor point relative to bodyB's origin.
Definition: b2FrictionJoint.h:44
b2Body * bodyB
The second attached body.
Definition: b2Joint.h:95
float32 maxForce
The maximum friction force in N.
Definition: b2FrictionJoint.h:47
void SetMaxTorque(float32 torque)
Set the maximum friction torque in N*m.
Definition: b2FrictionJoint.cpp:226
Definition: b2Joint.h:103
float32 GetMaxTorque() const
Get the maximum friction torque in N*m.
Definition: b2FrictionJoint.cpp:232
float32 GetReactionTorque(float32 inv_dt) const
Get the reaction torque on bodyB in N*m.
Definition: b2FrictionJoint.cpp:210
void SetZero()
Set this vector to all zeros.
Definition: b2Math.h:65
const b2Vec2 & GetLocalAnchorA() const
The local anchor point relative to bodyA's origin.
Definition: b2FrictionJoint.h:65
Definition: b2FrictionJoint.h:55
b2JointType type
The joint type is set automatically for concrete joint types.
Definition: b2Joint.h:86
Solver Data.
Definition: b2TimeStep.h:65
float32 GetMaxForce() const
Get the maximum friction force in N.
Definition: b2FrictionJoint.cpp:221
b2Vec2 GetAnchorB() const
Get the anchor point on bodyB in world coordinates.
Definition: b2FrictionJoint.cpp:200
A 2-by-2 matrix. Stored in column-major order.
Definition: b2Math.h:244
b2Vec2 localAnchorA
The local anchor point relative to bodyA's origin.
Definition: b2FrictionJoint.h:41
Joint definitions are used to construct joints.
Definition: b2Joint.h:74
b2Vec2 GetAnchorA() const
Get the anchor point on bodyA in world coordinates.
Definition: b2FrictionJoint.cpp:195
A rigid body. These are created via b2World::CreateBody.
Definition: b2Body.h:132
void Dump()
Dump joint to dmLog.
Definition: b2FrictionJoint.cpp:237
A 2D column vector.
Definition: b2Math.h:56
Friction joint definition.
Definition: b2FrictionJoint.h:25
b2Vec2 GetReactionForce(float32 inv_dt) const
Get the reaction force on bodyB at the joint anchor in Newtons.
Definition: b2FrictionJoint.cpp:205
void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor)
Definition: b2FrictionJoint.cpp:35
void SetMaxForce(float32 force)
Set the maximum friction force in N.
Definition: b2FrictionJoint.cpp:215