LinearVelocity

Show Deprecated

The LinearVelocity constraint applies force on a part/assembly to maintain a linear velocity.

This object maintains all functionality of BodyVelocity, a legacy body mover. To instead apply a constant force, use a VectorForce object instead.

Summary

Properties

The normalized Vector3 direction for constraining the velocity along a line, when VelocityConstraintMode is set to Line.

Float value of the velocity when VelocityConstraintMode is set to Line.

Maximum magnitude of the force vector the constraint can apply.

Vector2 value of the velocity in each tangent direction of the plane, when VelocityConstraintMode is set to Plane.

The primary axis in the plane, when VelocityConstraintMode is set to Plane.

Sets the ActuatorRelativeTo property for the LinearVelocity constraint.

The secondary axis in the plane, when VelocityConstraintMode is set to Plane.

Vector3 velocity value when VelocityConstraintMode is set to Vector.

The mode of the LinearVelocity constraint: Line, Plane, or Vector.

Events

Methods

Properties

LineDirection

The normalized Vector3 direction for constraining the velocity along a line, when VelocityConstraintMode is set to Line. Default is [1, 0, 0].

LineVelocity

Float value of the velocity when VelocityConstraintMode is set to Line. Default is 0.

MaxForce

Maximum magnitude of the force vector the constraint can apply.

PlaneVelocity

Vector2 value of the velocity in each tangent direction of the plane, when VelocityConstraintMode is set to Plane. Default is [0, 0].

PrimaryTangentAxis

The primary axis in the plane, when VelocityConstraintMode is set to Plane. Value depends on the value of RelativeTo as follows:

Sets the ActuatorRelativeTo property for the LinearVelocity constraint.

SecondaryTangentAxis

The secondary axis in the plane, when VelocityConstraintMode is set to Plane. Value depends on the value of RelativeTo as follows:

VectorVelocity

Vector3 velocity value when VelocityConstraintMode is set to Vector. Default is [0, 0, 0].

VelocityConstraintMode

The mode of the LinearVelocity constraint: Line, Plane, or Vector. Default is Vector.

Events

Methods