Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Difference between AssemblyLinearVelocity and AssemblyAngularVelocity?

Asked by
kqvrs 3
3 years ago

I have no idea what both of these mean and what is even the difference of them.

script.Parent.AssemblyLinearVelocity 

script.Parent.AssemblyAngularVelocity 

2 answers

Log in to vote
1
Answered by
JesseSong 3916 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

AssemblyLinearVelocity is the change of the center of mass in studs per second. While AssemblyAngularVelocity is the change of orientation in radians per second.

Quick Tip:

The developer hub is a source for learning Lua. All you have to do is search for what you're looking for and you'll find it along with the developer forums!

0
Thank you! kqvrs 3 — 3y
Ad
Log in to vote
4
Answered by
appxritixn 2235 Moderation Voter Community Moderator
3 years ago

BasePart.AssemblyAngularVelocity:

It’s the rate of change of orientation in radians per second.

BasePart.AssemblyLinearVelocity:

It’s the rate of change in position of the assembly’s center of mass in studs per second.

In other words:

AssemblyAngularVelocity is the rate at which the orientation of the assembly changes.

AssemblyLinearVelocity is the distance the assembly moves every second.

1
Also thank you! kqvrs 3 — 3y

Answer this question