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

#include <b2GearJoint.h>

Inheritance diagram for b2GearJointDef:
Inheritance graph
[legend]

Public Member Functions

 b2GearJointDef ()
 
- Public Member Functions inherited from b2JointDef
 b2JointDef ()
 

Public Attributes

b2Jointjoint1
 The first revolute/prismatic joint attached to the gear joint. More...
 
b2Jointjoint2
 The second revolute/prismatic joint attached to the gear joint. More...
 
float32 ratio
 
- 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...
 
voiduserData
 Use this to attach application specific data to your joints. More...
 

Detailed Description

Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work).

Definition at line 26 of file b2GearJoint.h.

Constructor & Destructor Documentation

b2GearJointDef::b2GearJointDef ( )
inline

Definition at line 28 of file b2GearJoint.h.

Member Data Documentation

b2Joint* b2GearJointDef::joint1

The first revolute/prismatic joint attached to the gear joint.

Definition at line 37 of file b2GearJoint.h.

b2Joint* b2GearJointDef::joint2

The second revolute/prismatic joint attached to the gear joint.

Definition at line 40 of file b2GearJoint.h.

float32 b2GearJointDef::ratio

The gear ratio.

See also
b2GearJoint for explanation.

Definition at line 44 of file b2GearJoint.h.


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


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52