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

#include <b2RopeJoint.h>

Inheritance diagram for b2RopeJointDef:
Inheritance graph
[legend]

Public Member Functions

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

Public Attributes

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 maxLength
 
- 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

Rope joint definition. This requires two body anchor points and a maximum lengths. Note: by default the connected objects will not collide. see collideConnected in b2JointDef.

Definition at line 28 of file b2RopeJoint.h.

Constructor & Destructor Documentation

b2RopeJointDef::b2RopeJointDef ( )
inline

Definition at line 30 of file b2RopeJoint.h.

Member Data Documentation

b2Vec2 b2RopeJointDef::localAnchorA

The local anchor point relative to bodyA's origin.

Definition at line 39 of file b2RopeJoint.h.

b2Vec2 b2RopeJointDef::localAnchorB

The local anchor point relative to bodyB's origin.

Definition at line 42 of file b2RopeJoint.h.

float32 b2RopeJointDef::maxLength

The maximum length of the rope. Warning: this must be larger than b2_linearSlop or the joint will have no effect.

Definition at line 47 of file b2RopeJoint.h.


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


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