Table of Contents

Class WeldJoint

Namespace
Jitter2.Dynamics.Constraints
Assembly
Jitter2.dll

Creates a rigid weld joint between two bodies using a FixedAngle constraint for orientation locking and a BallSocket constraint for positional locking. This effectively removes all relative motion between the connected bodies.

public class WeldJoint : Joint, IDebugDrawable
Inheritance
WeldJoint
Implements
Inherited Members

Constructors

WeldJoint(World, RigidBody, RigidBody, JVector)

Initializes a new weld joint.

public WeldJoint(World world, RigidBody body1, RigidBody body2, JVector center)

Parameters

world World
body1 RigidBody
body2 RigidBody
center JVector

Exceptions

ArgumentException

Thrown when center contains a non-finite value, when either body does not belong to world, or when both body references are the same.

Properties

BallSocket

public BallSocket BallSocket { get; }

Property Value

BallSocket

Body1

public RigidBody Body1 { get; }

Property Value

RigidBody

Body2

public RigidBody Body2 { get; }

Property Value

RigidBody

FixedAngle

public FixedAngle FixedAngle { get; }

Property Value

FixedAngle