RBX.lua.RocketPropulsion (Object): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus mNo edit summary |
>Anaminus cleaned up |
||
Line 9: | Line 9: | ||
In addition to the Global functions, RocketPropulsion incorporates the following: | In addition to the Global functions, RocketPropulsion incorporates the following: | ||
*[[Abort (Function)|Abort | *[[Abort (Function)|Abort]] | ||
*[[Fire (Function)|Fire | *[[Fire (Function)|Fire]] | ||
==Properties== | ==Properties== | ||
In addition to the Global properties, the BodyForce also has these: | In addition to the Global properties, the BodyForce also has these: | ||
*[[CartoonFactor (Property)|CartoonFactor]] | *[[CartoonFactor (Property)|CartoonFactor]] | ||
*[[MaxSpeed (Property)|MaxSpeed]] | *[[MaxSpeed (Property)|MaxSpeed]] | ||
*[[MaxThrust (Property)|MaxThrust]] | *[[MaxThrust (Property)|MaxThrust]] | ||
*[[MaxTorque (Property)|MaxTorque]] | *[[MaxTorque (Property)|MaxTorque]] | ||
*[[Target (Property)|Target]] | *[[Target (Property)|Target]] | ||
*[[TargetOffset (Property)|TargetOffset]] | *[[TargetOffset (Property)|TargetOffset]] | ||
*[[TargetRadius (Property)|TargetRadius]] | *[[TargetRadius (Property)|TargetRadius]] | ||
*[[ThrustD (Property)|ThrustD]] | *[[ThrustD (Property)|ThrustD]] | ||
*[[ThrustP (Property)|ThrustP]] | *[[ThrustP (Property)|ThrustP]] | ||
*[[TurnD (Property)|TurnD]] | *[[TurnD (Property)|TurnD]] | ||
*[[TurnP (Property)|TurnP] | *[[TurnP (Property)|TurnP]] | ||
== Events == | == Events == | ||
*[[ReachedTarget (Event)|ReachedTarget]] | *[[ReachedTarget (Event)|ReachedTarget]] | ||
Line 42: | Line 41: | ||
rp:Fire() | rp:Fire() | ||
</pre> | </pre> | ||
== See Also == | |||
[http://blog.roblox.com/?p=142 Blog post] | |||
[[Category:ROBLOX Lua Objects]] | [[Category:ROBLOX Lua Objects]] |
Revision as of 01:40, 3 January 2009
Preliminary:This item is under development and is likely to change. Use only for experimental work.
The RocketPropulsion object is used to apply force to a Part or other object in a similiar manner as a rocket (ie. towards a given part, with given thrust and torque).
Functions
In addition to the Global functions, RocketPropulsion incorporates the following:
Properties
In addition to the Global properties, the BodyForce also has these:
- CartoonFactor
- MaxSpeed
- MaxThrust
- MaxTorque
- Target
- TargetOffset
- TargetRadius
- ThrustD
- ThrustP
- TurnD
- TurnP
Events
Example Script
Insert this script into a small, unanchored part, and change the name in the script:
local rocket = script.Parent local rp = Instance.new("RocketPropulsion") rp.Parent = rocket rp.Target = game.Players.YourNameHere.Character.Torso rp:Fire()