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:
Inheritance graph
[legend]

Public Member Functions

 b2FrictionJointDef ()
 
void Initialize (b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor)
 
- Public Member Functions inherited from b2JointDef
 b2JointDef ()
 

Public Attributes

b2Vec2 localAnchorA
 The local anchor point relative to bodyA's origin. More...
 
b2Vec2 localAnchorB
 The local anchor point relative to bodyB's origin. More...
 
float maxForce
 The maximum friction force in N. More...
 
float maxTorque
 The maximum friction torque in N-m. More...
 
- Public Attributes inherited from b2JointDef
b2BodybodyA
 The first attached body. More...
 
b2BodybodyB
 The second attached body. More...
 
bool collideConnected
 Set this flag to true if the attached bodies should collide. More...
 
b2JointType type
 The joint type is set automatically for concrete joint types. More...
 
b2JointUserData userData
 Use this to attach application specific data to your joints. More...
 

Detailed Description

Friction joint definition.

Definition at line 30 of file b2_friction_joint.h.

Constructor & Destructor Documentation

◆ b2FrictionJointDef()

b2FrictionJointDef::b2FrictionJointDef ( )
inline

Definition at line 32 of file b2_friction_joint.h.

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.

Definition at line 39 of file b2_friction_joint.cpp.

Member Data Documentation

◆ localAnchorA

b2Vec2 b2FrictionJointDef::localAnchorA

The local anchor point relative to bodyA's origin.

Definition at line 46 of file b2_friction_joint.h.

◆ localAnchorB

b2Vec2 b2FrictionJointDef::localAnchorB

The local anchor point relative to bodyB's origin.

Definition at line 49 of file b2_friction_joint.h.

◆ maxForce

float b2FrictionJointDef::maxForce

The maximum friction force in N.

Definition at line 52 of file b2_friction_joint.h.

◆ maxTorque

float b2FrictionJointDef::maxTorque

The maximum friction torque in N-m.

Definition at line 55 of file b2_friction_joint.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22