Skip to content
EvilEngine.Api.Weapons

WeaponSteer record struct

public readonly record struct WeaponSteer

The mouse’s movement over one command, in screen pixels, for IWeaponHolder.Steer. The physics gun turns a held prop a twentieth of a degree a pixel.

Assembly
EvilEngine.Api
Commit
4ff877b1

Members

WeaponSteer constructor

public WeaponSteer(double X, double Y)

Makes one from its two distances.

X property

public double X { get; init; }

How far the mouse moved right, negative for left.

Y property

public double Y { get; init; }

How far the mouse moved down, negative for up.

None property

public static WeaponSteer None { get; }

No movement, both 0.

Moved property

public bool Moved { get; }

Whether the mouse moved at all.