Interface IJoint2D
Interface for a Joint 2D physics.
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public interface IJoint2D
Properties
BodyA
Gets the first body attached to this joint.
Declaration
IRigidBody2D BodyA { get; }
Property Value
Type | Description |
---|---|
IRigidBody2D |
BodyB
Gets the second body attached to this joint.
Declaration
IRigidBody2D BodyB { get; }
Property Value
Type | Description |
---|---|
IRigidBody2D |
BreakPoint
Gets or sets the amount offorce that a joint can take before break.
Declaration
float BreakPoint { get; set; }
Property Value
Type | Description |
---|---|
float |
InternalJoint
Gets the Box2D internal joint.
Declaration
object InternalJoint { get; }
Property Value
Type | Description |
---|---|
object |
IsActive
Gets or sets a value indicating whether this joint is active.
Declaration
bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
bool |
LocalAnchorA
Gets the local anchor point relative to bodyA's origin.
Declaration
Vector2 LocalAnchorA { get; }
Property Value
Type | Description |
---|---|
Vector2 |
LocalAnchorB
Gets the local anchor point relative to bodyB's origin.
Declaration
Vector2 LocalAnchorB { get; }
Property Value
Type | Description |
---|---|
Vector2 |
ReactionForce
Gets the reaction force on bodyB at the joint anchor in Newtons.
Declaration
Vector2 ReactionForce { get; }
Property Value
Type | Description |
---|---|
Vector2 |
ReactionTorque
Gets the reaction torque on bodyB in N*m.
Declaration
float ReactionTorque { get; }
Property Value
Type | Description |
---|---|
float |
Events
OnBroke
Event fired when the joint is broken
Declaration
event OnBrokeEventHandler OnBroke
Event Type
Type | Description |
---|---|
OnBrokeEventHandler |