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

#include <b2_gear_joint.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...
 
float 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...
 
b2JointUserData userData
 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).

Warning
bodyB on the input joints must both be dynamic

Definition at line 31 of file b2_gear_joint.h.

Constructor & Destructor Documentation

◆ b2GearJointDef()

b2GearJointDef::b2GearJointDef ( )
inline

Definition at line 33 of file b2_gear_joint.h.

Member Data Documentation

◆ joint1

b2Joint* b2GearJointDef::joint1

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

Definition at line 42 of file b2_gear_joint.h.

◆ joint2

b2Joint* b2GearJointDef::joint2

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

Definition at line 45 of file b2_gear_joint.h.

◆ ratio

float b2GearJointDef::ratio

The gear ratio.

See also
b2GearJoint for explanation.

Definition at line 49 of file b2_gear_joint.h.


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


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