Skip to content

Billboard

namespace Griff.Modules.FirstPerson;
public sealed class Billboard : Component

How a sprite stands in a FirstPersonView. Without one, sprites stand on the floor; this lifts them off it (a lamp on the ceiling, a fireball at chest height) or bobs them up and down (a floating pickup).

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

public float Bob { get; set; }

How far it bobs up and down, in world units. 0 keeps it still.

public float BobSpeed { get; set; }

Bobs a second.

public float Lift { get; set; }

How high its bottom edge is off the floor, in world units.

public float Scale { get; set; }

Sprite size multiplier in first person, so the top-down map can use a different size.