Box2D: b2FrictionJointDef Struct Reference

| Box2D 2.4.1 A 2D physics engine for games

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
b2FrictionJointDef Struct Reference

Friction joint definition. More...

`#include <b2_friction_joint.h>`

Inheritance diagram for b2FrictionJointDef:

## 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.
float | maxForce
| The maximum friction force in N.
float | 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.
b2JointUserData | 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.

## Detailed Description

Friction joint definition.

## Member Function Documentation

## ◆ Initialize()

void b2FrictionJointDef::Initialize | ( | b2Body * | bodyA,
|  | b2Body * | bodyB,
|  | const b2Vec2 & | anchor )

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.

The documentation for this struct was generated from the following file:

- /build/box2d/src/box2d-2.4.2/include/box2d/b2_friction_joint.h