Public Member Functions | Public Attributes
b2MotorJointDef Struct Reference

Motor joint definition. More...

#include <b2MotorJoint.h>

Inheritance diagram for b2MotorJointDef:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 b2MotorJointDef ()
void Initialize (b2Body *bodyA, b2Body *bodyB)
 Initialize the bodies and offsets using the current transforms.

Public Attributes

float32 angularOffset
 The bodyB angle minus bodyA angle in radians.
float32 correctionFactor
 Position correction factor in the range [0,1].
b2Vec2 linearOffset
 Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
float32 maxForce
 The maximum motor force in N.
float32 maxTorque
 The maximum motor torque in N-m.

Detailed Description

Motor joint definition.

Definition at line 25 of file b2MotorJoint.h.


Constructor & Destructor Documentation

Definition at line 27 of file b2MotorJoint.h.


Member Function Documentation

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

Initialize the bodies and offsets using the current transforms.

Definition at line 35 of file b2MotorJoint.cpp.


Member Data Documentation

The bodyB angle minus bodyA angle in radians.

Definition at line 44 of file b2MotorJoint.h.

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

Definition at line 53 of file b2MotorJoint.h.

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

Definition at line 41 of file b2MotorJoint.h.

The maximum motor force in N.

Definition at line 47 of file b2MotorJoint.h.

The maximum motor torque in N-m.

Definition at line 50 of file b2MotorJoint.h.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 22:08:35