Previous: Teleporter, Up: Motion [Contents][Index]
This component adds thrust to a given Rigidbody. It also works with the ’InputVector’ component (optionally) allthoug it can be used either by itself or with any message sender/toggle component. To use, add this to an object with a Rigidbody component that you’d like to push around. Then, input some ’Thrust’ settings above to tell the Thruster how strong it is in which directions. Negative values may be used. Finally, either set it’s ’Thrusting’ setting to true, or send messages to it to control it’s thrust state.
Vector3
thrustHow much thrust do we apply each fixed update?
string
axisIf we are using an input axis, which one?
Default value: "Vertical"
Space
spaceShould the force be applied in global or local coordinates?
Default value: Space.Self
bool
ignoreThrusterPositionIf true, the thruster will always apply force to the center of the rigidbody. Otherwise, it will apply force at it’s position
Default value: true
GameObject
targetOptional target to transfer force to
bool
useInputAxisShould we use an input axis to control the thrust level? X and Y input axes correspond to X and Z thrust.
Default value: false
float
inputSensitivityHow sensitive is that axis?
Default value: 0.2f
ParticleController
controllerIf a Particle Controller component is present, the Thruster will control it’s Emission multiplier as a percentage of current thrust
Start to send the predetermined amount of force to the rigidbody each frame until stopped.
Stop thrusting
Thrust a specific amount this frame
Argument: The scalar of thrust we want to send (multiplied by the ’Thrust’ you indicated above)
Vector3
thrustHow much thrust do we apply each fixed update?
string
axisIf we are using an input axis, which one?
Default value: "Vertical"
Space
spaceShould the force be applied in global or local coordinates?
Default value: Space.Self
bool
ignoreThrusterPositionIf true, the thruster will always apply force to the center of the rigidbody. Otherwise, it will apply force at it’s position
Default value: true
GameObject
targetOptional target to transfer force to
bool
useInputAxisShould we use an input axis to control the thrust level? X and Y input axes correspond to X and Z thrust.
Default value: false
float
inputSensitivityHow sensitive is that axis?
Default value: 0.2f
ParticleController
controllerIf a Particle Controller component is present, the Thruster will control it’s Emission multiplier as a percentage of current thrust
Start to send the predetermined amount of force to the rigidbody each frame until stopped.
Stop thrusting
Thrust a specific amount this frame
Argument: The scalar of thrust we want to send (multiplied by the ’Thrust’ you indicated above)
Previous: Teleporter, Up: Motion [Contents][Index]