Skip to content

Thruster

namespace Griff.Modules.Contraptions;
public sealed class Thruster : Component

Pushes its Body (and whatever it’s welded to) along Direction while it has Power: wire a button to it to lift a platform or drive a cart. A ParticleEmitter on it fires while it pushes.

This is a component: its saved properties are on its component page.

public Vector2 Direction { get; set; }

Which way it pushes, turned with the entity: up is (0, 1).

public float Force { get; set; }

How hard it pushes at full power. A crate weighs 1, and gravity pulls it with 25.

public float Power { get; set; }

Its input: how hard it pushes, from 0 (off) to 1 (full). Wire something to its “Power”, or set it.