|
Box2D
2.3.0
A 2D Physics Engine for Games
|
Friction joint definition. More...
#include <b2FrictionJoint.h>
Public Member Functions | |
| void | Initialize (b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor) |
Public Attributes | |
| b2Vec2 | localAnchorA |
| The local anchor point relative to bodyA's origin. | |
| b2Vec2 | localAnchorB |
| The local anchor point relative to bodyB's origin. | |
| float32 | maxForce |
| The maximum friction force in N. | |
| float32 | maxTorque |
| The maximum friction torque in N-m. | |
Public Attributes inherited from b2JointDef | |
| b2JointType | type |
| The joint type is set automatically for concrete joint types. | |
| void * | userData |
| Use this to attach application specific data to your joints. | |
| b2Body * | bodyA |
| The first attached body. | |
| b2Body * | bodyB |
| The second attached body. | |
| bool | collideConnected |
| Set this flag to true if the attached bodies should collide. | |
Friction joint definition.
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
1.8.14