Previous: , Up: Motion   [Contents][Index]


12.23 Thruster

Component: Thruster

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.

Field of Thruster: Vector3 thrust

How much thrust do we apply each fixed update?

Field of Thruster: string axis

If we are using an input axis, which one?

Default value: "Vertical"

Field of Thruster: Space space

Should the force be applied in global or local coordinates?

Default value: Space.Self

Field of Thruster: bool ignoreThrusterPosition

If 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

Field of Thruster: GameObject target

Optional target to transfer force to

Field of Thruster: bool useInputAxis

Should we use an input axis to control the thrust level? X and Y input axes correspond to X and Z thrust.

Default value: false

Field of Thruster: float inputSensitivity

How sensitive is that axis?

Default value: 0.2f

Field of Thruster: ParticleController controller

If a Particle Controller component is present, the Thruster will control it’s Emission multiplier as a percentage of current thrust

Available Messages

Message on Thruster: BeginThrust ()

Start to send the predetermined amount of force to the rigidbody each frame until stopped.

Message on Thruster: EndThrust ()

Stop thrusting

Message on Thruster: ThrustAmount (float)

Thrust a specific amount this frame

Argument: The scalar of thrust we want to send (multiplied by the ’Thrust’ you indicated above)

Field of Thruster: Vector3 thrust

How much thrust do we apply each fixed update?

Field of Thruster: string axis

If we are using an input axis, which one?

Default value: "Vertical"

Field of Thruster: Space space

Should the force be applied in global or local coordinates?

Default value: Space.Self

Field of Thruster: bool ignoreThrusterPosition

If 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

Field of Thruster: GameObject target

Optional target to transfer force to

Field of Thruster: bool useInputAxis

Should we use an input axis to control the thrust level? X and Y input axes correspond to X and Z thrust.

Default value: false

Field of Thruster: float inputSensitivity

How sensitive is that axis?

Default value: 0.2f

Field of Thruster: ParticleController controller

If a Particle Controller component is present, the Thruster will control it’s Emission multiplier as a percentage of current thrust

Available Messages

Message on Thruster: BeginThrust ()

Start to send the predetermined amount of force to the rigidbody each frame until stopped.

Message on Thruster: EndThrust ()

Stop thrusting

Message on Thruster: ThrustAmount (float)

Thrust a specific amount this frame

Argument: The scalar of thrust we want to send (multiplied by the ’Thrust’ you indicated above)


Previous: , Up: Motion   [Contents][Index]