Table of Contents

Struct MotorJointDefinition

Namespace
Box3D
Assembly
Box3D.NET.dll

Drives the relative position and velocity of two bodies while leaving them responsive to collisions.

public readonly record struct MotorJointDefinition : IEquatable<MotorJointDefinition>

Implements

Inherited Members

Remarks

A spring controls the pose and a velocity motor controls the velocity. Both can be used at once, each with its own force and torque limit, which is how you get a body that follows a target but still gets pushed around.

Properties

AngularDampingRatio

Gets the rotational spring damping ratio.

AngularHertz

Gets the rotational spring stiffness in cycles per second.

AngularVelocity

Gets the relative angular velocity driven towards, in radians per second.

Base

Gets the settings shared by every joint.

Default

Gets the engine defaults, with no bodies attached.

LinearDampingRatio

Gets the positional spring damping ratio.

LinearHertz

Gets the positional spring stiffness in cycles per second.

LinearVelocity

Gets the relative linear velocity driven towards, in metres per second.

MaxSpringForce

Gets the maximum positional spring force, in newtons.

MaxSpringTorque

Gets the maximum rotational spring torque, in newton-metres.

MaxVelocityForce

Gets the maximum force the velocity motor may apply, in newtons.

MaxVelocityTorque

Gets the maximum torque the velocity motor may apply, in newton-metres.