Class JointDef2D
Definition of a 2D Joint.
Inherited Members
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public class JointDef2D
Fields
BodyA
The first attached body.
Declaration
public IRigidBody2D BodyA
Field Value
Type | Description |
---|---|
IRigidBody2D |
BodyB
The second attached body.
Declaration
public IRigidBody2D BodyB
Field Value
Type | Description |
---|---|
IRigidBody2D |
BreakPoint
The amount of force needed to break the joint.
Declaration
public float BreakPoint
Field Value
Type | Description |
---|---|
float |
CollideConnected
Set this flag to true if the attached bodies should collide.
Declaration
public bool CollideConnected
Field Value
Type | Description |
---|---|
bool |
IsActive
The joint is active by default.
Declaration
public bool IsActive
Field Value
Type | Description |
---|---|
bool |
LocalAnchorA
The local anchor point relative to bodyA's origin.
Declaration
public Vector2 LocalAnchorA
Field Value
Type | Description |
---|---|
Vector2 |
LocalAnchorB
The local anchor point relative to bodyB's origin.
Declaration
public Vector2 LocalAnchorB
Field Value
Type | Description |
---|---|
Vector2 |
UserData
Use this to attach application specific data to your joints.
Declaration
public object UserData
Field Value
Type | Description |
---|---|
object |