AngularVelocity

AngularVelocity : Constraint

Overview

AngularVelocity manages angular velocity and torque for physics raints using properties.

Description

AngularVelocity is designed to control and manage angular velocity raints between game objects or parts within simulations. It allows users to set rotational speeds and torque limits for smooth interaction and dynamic simulations.

Properties

AngularVelocity

Vector3

AngularVelocity is a property within the AngularVelocity class that represents rotational velocity, defined as an vector3

Code Samples

local Part = script.Parent
local Attachment = Part.Attachment

local AngularVelocity = Instance.new("AngularVelocity")
AngularVelocity.Attachment0 = Attachment
AngularVelocity.AngularVelocity = Vector3.new(0, 3, 0) 
AngularVelocity.MaxTorque = math.huge 
AngularVelocity.RelativeTo = Enum.ActuatorRelativeTo.World
AngularVelocity.Parent = Part

MaxTorque

number

MaxTorque specifies the maximum torque allowed for rotational motion, controlling the force limit and strength of an angular velocity raint.

Code Samples

local AngularVelocity = Instance.new("AngularVelocity")

AngularVelocity.MaxTorque = math.huge

ReactionTorqueEnabled

bool

ReactionTorqueEnabled is a boolean property that determines whether reaction torque should be enabled for an angular velocity raint.

Code Samples

RelativeTo

Enum.ActuatorRelativeTo

RelativeTo is an enumeration property specifying the reference point for applying angular velocity raints either to Attachment0 or Attachment1 in a physics raint.

Code Samples

local AngularVelocity = Instance.new("AngularVelocity")

AngularVelocity.RelativeTo = Enum.ActuatorRelativeTo.World

Methods

Events