public class HoverThrusterBehaviour

Inherits MonoBehaviour, Messages.IUse

Controls the hover thruster

Fields

public float BaseHoverHeight

The distance to keep from the ground


public PhysicalBehaviour PhysicalBehaviour

[SkipSerialisation]

Reference to the PhysicalBehaviour of the thruster


public SpriteRenderer GlowSprite

[SkipSerialisation]

Reference to the lighting sprite


public SpriteRenderer Light

[SkipSerialisation]

Reference to the little LED on the thruster


public ParticleSystem Effects

[SkipSerialisation]

Reference to the purple wave particle system


public AudioSource IdleLoop

[SkipSerialisation]

Reference to the AudioSource that plays the thruster sound


public Transform[] HoverPoints

[SkipSerialisation]

An array of transforms that contains the children out of which the thruster shoots hover rays


public LayerMask Layers

[SkipSerialisation]

The layers to hover over


public float ForceMultiplier

How much force should be applied


public float FactorPower

The exponent applied to the calculation that determines how much force to apply considering the distance from the ground


public float VelocityRetention

How much perpendicular velocity should be retained when hovering? Ranges from 0.0 to 1.0


public bool Activated

Is the thruster activated?


public float[] calibratedHoverHeights

[SkipSerialisation] [NaughtyAttributes.ReadOnly]

Used for serialisation. Do not manipulate.


public const float MinHeight

The minimum allowed hovering height constant.

Constant value: 0.5f * Utils.MetersToUnits


public const float MaxHeight

The maximum allowed hovering height constant.

Constant value: 10_000f * Utils.MetersToUnits


Methods

public void Use(ActivationPropagation a)

No description provided


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi