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
Exceptions
- ArgumentException
Thrown when
centercontains a non-finite value, when either body does not belong toworld, or when both body references are the same.
Properties
BallSocket
public BallSocket BallSocket { get; }
Property Value
Body1
public RigidBody Body1 { get; }
Property Value
Body2
public RigidBody Body2 { get; }
Property Value
FixedAngle
public FixedAngle FixedAngle { get; }