LinearVelocity
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.
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.
Methods
Events
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:
- If RelativeTo is set to World, this value must be specified in the world space.
RelativeTo
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:
- If RelativeTo is set to World, this value must be specified in the world space.
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.