Table of Contents

Class WeldJoint

Namespace
Jitter2.Dynamics.Constraints
Assembly
Jitter2.dll

Holds two bodies together at a shared anchor and preserves their relative orientation.

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

The shared anchor point in world space.

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