RBX.lua.Motor (Object): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Outofspace
m Cat. added
>Anaminus
Formatted; added members
Line 1: Line 1:
(Incorrect description)A motor is a type of hinge, but motors work like, well, motors. They can be set to do different things by adjusting the properties on the object that has the motor on it. There are several different ways to make it spin, and you can adjust how fast it spins too. Motors can be extremely helpful too. -- WRONG KIND OF MOTOR.
{{CatUp|Class reference}}
__NOTOC__


The motor mentioned here is the OBJECT motor. Its whats used to animate characters, xLEGOx's Personoids, Zuka's dragons, and many other creations in roblox. They just make Part1 move to [DesiredAngle] relative to Part0. TheC0 sets how the rotation point is attached to the Part0, and the C1 sets how the Part1 is attached to the rotation point
The Motor object can be used for making movable joints between two [[RBX.Lua.Part|Parts]]. They are used to make a character's limbs move.


==Basic usage==
==Functions==
To use Instance motors you must use a script.
The Motor object incorporates only the global functions.
Basic template for making a motor:
 
<pre>
==Properties==
local a = Instance.new("Motor")
In addition to the global properties, the Motor object also has these:
a.Parent = Obj1
 
a.Part0 = Obj1
*[[C0]]
a.Part1 = Obj2
*[[C1]]
a.C0 = CFrame.new(Vector3)*CFrame.fromEulerAnglesXYZ(Vector3)
*[[CurrentAngle]]
a.C1 = CFrame.new(Vector3)*CFrame.fromEulerAnglesXYZ(Vector3)
*[[DesiredAngle]]
</pre>
*[[MaxVelocity]]
*[[Part0]]
*[[Part1]]
 
==Events==
The Motor object incorporates only the global events.


[[Category:ROBLOX Lua Objects]]
[[Category:ROBLOX Lua Objects]]

Revision as of 23:41, 9 July 2008


The Motor object can be used for making movable joints between two Parts. They are used to make a character's limbs move.

Functions

The Motor object incorporates only the global functions.

Properties

In addition to the global properties, the Motor object also has these:

Events

The Motor object incorporates only the global events.