Public Member Functions | Public Attributes | List of all members
b2MotorJointDef Struct Reference

Motor joint definition. More...

#include <b2_motor_joint.h>

Inheritance diagram for b2MotorJointDef:
Inheritance graph
[legend]

Public Member Functions

 b2MotorJointDef ()
 
void Initialize (b2Body *bodyA, b2Body *bodyB)
 Initialize the bodies and offsets using the current transforms. More...
 
- Public Member Functions inherited from b2JointDef
 b2JointDef ()
 

Public Attributes

float angularOffset
 The bodyB angle minus bodyA angle in radians. More...
 
float correctionFactor
 Position correction factor in the range [0,1]. More...
 
b2Vec2 linearOffset
 Position of bodyB minus the position of bodyA, in bodyA's frame, in meters. More...
 
float maxForce
 The maximum motor force in N. More...
 
float maxTorque
 The maximum motor 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

Motor joint definition.

Definition at line 30 of file b2_motor_joint.h.

Constructor & Destructor Documentation

◆ b2MotorJointDef()

b2MotorJointDef::b2MotorJointDef ( )
inline

Definition at line 32 of file b2_motor_joint.h.

Member Function Documentation

◆ Initialize()

void b2MotorJointDef::Initialize ( b2Body bodyA,
b2Body bodyB 
)

Initialize the bodies and offsets using the current transforms.

Definition at line 42 of file b2_motor_joint.cpp.

Member Data Documentation

◆ angularOffset

float b2MotorJointDef::angularOffset

The bodyB angle minus bodyA angle in radians.

Definition at line 49 of file b2_motor_joint.h.

◆ correctionFactor

float b2MotorJointDef::correctionFactor

Position correction factor in the range [0,1].

Definition at line 58 of file b2_motor_joint.h.

◆ linearOffset

b2Vec2 b2MotorJointDef::linearOffset

Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.

Definition at line 46 of file b2_motor_joint.h.

◆ maxForce

float b2MotorJointDef::maxForce

The maximum motor force in N.

Definition at line 52 of file b2_motor_joint.h.

◆ maxTorque

float b2MotorJointDef::maxTorque

The maximum motor torque in N-m.

Definition at line 55 of file b2_motor_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