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

From Legacy Roblox Wiki
Jump to navigationJump to search
>SaladDog
added <br>
>Ganondude
m Improved format
Line 1: Line 1:
RocketPropulsion is a little-known secret that is very helpful when creating pets, homing rockets, and any projectile that homes in on a [[Part]].
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 position, with given thrust and torque).


 
==Functions==
== Functions: ==
In addition to the Global functions, RocketPropulsion incorporates the following:


'''Fire()'''  - Makes the rocket fly.<br>
'''Fire()'''  - Makes the rocket fly.<br>
Line 8: Line 8:




== Properties: ==
==Properties==
In addition to the Global properties, the BodyForce also has these:


'''Target''' - Part that the rocket will fly towards.<br>
* [[position|Target]]
'''MaxSpeed''' - How fast the rocket will fly.<br>
*MaxSpeed - How fast the rocket will fly.<br>
'''CartoonFactor''' - In a nutshell, the tilt of the rocket as it flies.  A value of 0 will make the rocket's nose point upwards.  A value of 1 will make the rocket's nose point straight towards the Target.<br>
*CartoonFactor - In a nutshell, the tilt of the rocket as it flies.  A value of 0 will make the rocket's nose point upwards.  A value of 1 will make the rocket's nose point straight towards the Target.<br>
'''TargetRadius''' - The radius of the Target before the ReachedTarget event is fired.<br>
*TargetRadius - The radius of the Target before the ReachedTarget event is fired.<br>
'''MaxThrust''' - The amount of thrust that is exerted on the rocket, used to keep heavier rockets airborne.<br>
*MaxThrust - The amount of thrust that is exerted on the rocket, used to keep heavier rockets airborne.<br>
'''MaxTorque''' - The amount of torque the rocket will use to rotate the rocket.<br>
* [[maxTorque]]

Revision as of 23:31, 17 March 2008

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 position, with given thrust and torque).

Functions

In addition to the Global functions, RocketPropulsion incorporates the following:

Fire() - Makes the rocket fly.
Abort() - Makes the rocket fall.


Properties

In addition to the Global properties, the BodyForce also has these:

  • Target
  • MaxSpeed - How fast the rocket will fly.
  • CartoonFactor - In a nutshell, the tilt of the rocket as it flies. A value of 0 will make the rocket's nose point upwards. A value of 1 will make the rocket's nose point straight towards the Target.
  • TargetRadius - The radius of the Target before the ReachedTarget event is fired.
  • MaxThrust - The amount of thrust that is exerted on the rocket, used to keep heavier rockets airborne.
  • maxTorque