LinearVelocity
Forces an object to travel in a straight line at a set speed and direction.
Properties
| Property | Type | Default |
|---|---|---|
Attachment0 | any | nil |
Attachment1 | any | nil |
ForceLimitMode | EnumItem | Enum.ForceLimitMode.Magnitude |
ForceLimitsEnabled | boolean | false |
LineDirection | Vector3 | Vector3.new(1, 0, 0) |
LineVelocity | number | 0 |
MaxAxesForce | Vector3 | Vector3.new(math.huge, math.huge, math.huge) |
MaxForce | any | math.huge |
MaxPlanarAxesForce | Vector2 | Vector2.new(math.huge, math.huge) |
PlaneVelocity | Vector2 | Vector2.new(0, 0) |
PrimaryTangentAxis | Vector3 | Vector3.new(1, 0, 0) |
ReactionForceEnabled | boolean | false |
RelativeTo | EnumItem | Enum.ActuatorRelativeTo.World |
SecondaryTangentAxis | Vector3 | Vector3.new(0, 0, 1) |
VectorVelocity | Vector3 | Vector3.new(0, 0, 0) |
VelocityConstraintMode | EnumItem | Enum.VelocityConstraintMode.Vector |
Enabled | boolean | true |
Name | string | "LinearVelocity" |
Functions
`shouldApplyPhysics`
`getAttachmentPart`
`resolvePart`
`getReferenceCFrame`
`vectorToWorld`
`vectorToRelative`
`orthonormalize`
`resolvePlaneAxes`
`resolveTargetVelocity`
`clampVectorMagnitude`
`clampPerAxis`
shouldApplyPhysics
Arguments
partReturns
booleangetAttachmentPart
Arguments
attachmentReturns
This function returns nothing.
resolvePart
Arguments
This function takes no arguments.
Returns
This function returns nothing.
getReferenceCFrame
Arguments
partReturns
This function returns nothing.
vectorToWorld
Arguments
vectorValue, partReturns
This function returns nothing.
vectorToRelative
Arguments
vectorValue, partReturns
This function returns nothing.
orthonormalize
Arguments
primary, secondaryReturns
This function returns nothing.
resolvePlaneAxes
Arguments
partReturns
This function returns nothing.
resolveTargetVelocity
Arguments
partReturns
This function returns nothing.
clampVectorMagnitude
Arguments
vectorValue, maxMagnitudeReturns
This function returns nothing.
clampPerAxis
Arguments
forceValue, partReturns
This function returns nothing.
API
instance:shouldApplyPhysics(part): boolean
instance:getAttachmentPart(attachment)
instance:resolvePart()
instance:getReferenceCFrame(part)
instance:vectorToWorld(vectorValue, part)
instance:vectorToRelative(vectorValue, part)
instance:orthonormalize(primary, secondary)
instance:resolvePlaneAxes(part)
instance:resolveTargetVelocity(part)
instance:clampVectorMagnitude(vectorValue, maxMagnitude)
instance:clampPerAxis(forceValue, part)