BodyVelocity

Show Deprecated
Deprecated

The BodyVelocity object applies a force on an assembly such that it will maintain a constant velocity. The Velocity property, not to be confused with BasePart.AssemblyLinearVelocity, controls the goal velocity.

BodyVelocity is the linear counterpart to BodyAngularVelocity. If you need the assembly to move toward a goal position, use BodyPosition instead. If you need further control on a force applied to an object, consider using a BodyForce or BodyThrust instead.

The strength of the force applied by this object is controlled by several factors, namely the difference between the assembly's current velocity and the goal velocity. This is multiplied by P (power) to either amplify or diminish it. The resulting force is then capped by MaxForce.

Summary

Properties

  • Read Parallel

    Determines the limit on how much force that may be applied to each axis.

  • Read Parallel

    Determines how aggressive of a force is applied in reaching the goal velocity.

  • Read Parallel

    Determines the goal velocity.

Methods

Properties

MaxForce

Read Parallel
Read Parallel

Velocity

Read Parallel

Methods

GetLastForce


Returns

lastForce


Returns

Events