Method CreateMotorJoint
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
CreateMotorJoint(MotorJointDefinition)
Creates a motor joint, driving the relative pose and velocity of two bodies.
public MotorJoint CreateMotorJoint(MotorJointDefinition definition)Parameters
definitionMotorJointDefinition-
The joint settings.
Returns
- MotorJoint
-
The new joint.
Exceptions
- ObjectDisposedException
-
The world has been disposed.
- ArgumentException
-
The definition does not name two distinct, valid bodies.