 |
Box2D
2.3.0
A 2D Physics Engine for Games
|
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;
A 2D column vector.
Definition: b2Math.h:54
Definition: b2FrictionJoint.h:56
A rigid body. These are created via b2World::CreateBody.
Definition: b2Body.h:127
b2Vec2 localAnchorA
The local anchor point relative to bodyA's origin.
Definition: b2FrictionJoint.h:41
float32 GetReactionTorque(float32 inv_dt) const
Get the reaction torque on bodyB in N*m.
Definition: b2FrictionJoint.cpp:210
Joint definitions are used to construct joints.
Definition: b2Joint.h:75
b2JointType type
The joint type is set automatically for concrete joint types.
Definition: b2Joint.h:86
float32 GetMaxTorque() const
Get the maximum friction torque in N*m.
Definition: b2FrictionJoint.cpp:232
b2Vec2 GetAnchorA() const
Get the anchor point on bodyA in world coordinates.
Definition: b2FrictionJoint.cpp:195
void SetMaxTorque(float32 torque)
Set the maximum friction torque in N*m.
Definition: b2FrictionJoint.cpp:226
void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor)
Definition: b2FrictionJoint.cpp:35
b2Body * bodyB
The second attached body.
Definition: b2Joint.h:95
float32 maxTorque
The maximum friction torque in N-m.
Definition: b2FrictionJoint.h:50
const b2Vec2 & GetLocalAnchorA() const
The local anchor point relative to bodyA's origin.
Definition: b2FrictionJoint.h:65
b2Vec2 GetReactionForce(float32 inv_dt) const
Get the reaction force on bodyB at the joint anchor in Newtons.
Definition: b2FrictionJoint.cpp:205
b2Vec2 localAnchorB
The local anchor point relative to bodyB's origin.
Definition: b2FrictionJoint.h:44
float32 maxForce
The maximum friction force in N.
Definition: b2FrictionJoint.h:47
float32 GetMaxForce() const
Get the maximum friction force in N.
Definition: b2FrictionJoint.cpp:221
void Dump()
Dump joint to dmLog.
Definition: b2FrictionJoint.cpp:237
A 2-by-2 matrix. Stored in column-major order.
Definition: b2Math.h:184
Solver Data.
Definition: b2TimeStep.h:64
void SetZero()
Set this vector to all zeros.
Definition: b2Math.h:62
b2Body * bodyA
The first attached body.
Definition: b2Joint.h:92
Definition: b2Joint.h:104
void SetMaxForce(float32 force)
Set the maximum friction force in N.
Definition: b2FrictionJoint.cpp:215
Friction joint definition.
Definition: b2FrictionJoint.h:26
b2Vec2 GetAnchorB() const
Get the anchor point on bodyB in world coordinates.
Definition: b2FrictionJoint.cpp:200
const b2Vec2 & GetLocalAnchorB() const
The local anchor point relative to bodyB's origin.
Definition: b2FrictionJoint.h:68