C# Class Box2DX.Dynamics.JointDef

Joint definitions are used to construct joints.
Show file Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Public Properties

Property Type Description
Body1 Body
Body2 Body
CollideConnected bool
Type JointType
UserData object

Public Methods

Method Description
JointDef ( ) : System

Method Details

JointDef() public method

public JointDef ( ) : System
return System

Property Details

Body1 public property

The first attached body.
public Body,Box2DX.Dynamics Body1
return Body

Body2 public property

The second attached body.
public Body,Box2DX.Dynamics Body2
return Body

CollideConnected public property

Set this flag to true if the attached bodies should collide.
public bool CollideConnected
return bool

Type public property

The joint type is set automatically for concrete joint types.
public JointType Type
return JointType

UserData public property

Use this to attach application specific data to your joints.
public object UserData
return object