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

#include <b2WeldJoint.h>

Inheritance diagram for b2WeldJointDef:
Inheritance graph
[legend]

Public Member Functions

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

Public Attributes

float32 dampingRatio
 The damping ratio. 0 = no damping, 1 = critical damping. More...
 
float32 frequencyHz
 
b2Vec2 localAnchorA
 The local anchor point relative to bodyA's origin. More...
 
b2Vec2 localAnchorB
 The local anchor point relative to bodyB's origin. More...
 
float32 referenceAngle
 The bodyB angle minus bodyA angle in the reference state (radians). 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...
 
void * userData
 Use this to attach application specific data to your joints. More...
 

Detailed Description

Weld joint definition. You need to specify local anchor points where they are attached and the relative body angle. The position of the anchor points is important for computing the reaction torque.

Definition at line 27 of file b2WeldJoint.h.

Constructor & Destructor Documentation

b2WeldJointDef::b2WeldJointDef ( )
inline

Definition at line 29 of file b2WeldJoint.h.

Member Function Documentation

void b2WeldJointDef::Initialize ( b2Body bodyA,
b2Body bodyB,
const b2Vec2 anchor 
)

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

Definition at line 37 of file b2WeldJoint.cpp.

Member Data Documentation

float32 b2WeldJointDef::dampingRatio

The damping ratio. 0 = no damping, 1 = critical damping.

Definition at line 57 of file b2WeldJoint.h.

float32 b2WeldJointDef::frequencyHz

The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0.

Definition at line 54 of file b2WeldJoint.h.

b2Vec2 b2WeldJointDef::localAnchorA

The local anchor point relative to bodyA's origin.

Definition at line 44 of file b2WeldJoint.h.

b2Vec2 b2WeldJointDef::localAnchorB

The local anchor point relative to bodyB's origin.

Definition at line 47 of file b2WeldJoint.h.

float32 b2WeldJointDef::referenceAngle

The bodyB angle minus bodyA angle in the reference state (radians).

Definition at line 50 of file b2WeldJoint.h.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41