Box2D
2.2.1
Box2D API Reference for Kobold2D developers
|
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. |
Friction joint definition.
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
The local anchor point relative to bodyA's origin.
The local anchor point relative to bodyB's origin.
float32 b2FrictionJointDef::maxForce |
The maximum friction force in N.
float32 b2FrictionJointDef::maxTorque |
The maximum friction torque in N-m.