Log inGet started
World

Trophy Room: Trophies and Podiums Kit

Branchmain
Branchesmain
Commit3a0b4820a7

README.md

Podium

A three-step winners' podium built from its fields on every peer. Steps are laid out 2-1-3 from the left as seen from the front (+Z); each step top is 3.1 m by 2.7 m, room for a 2 m by 1.5 m kart, at 1.3 m, 0.85 m and 0.55 m high. look picks classic, cartoon, scifi or pixel; numbers shows the place numbers on the step fronts; collide makes each step solid with a box collider so karts and players stand on it. stepTop(place) answers the world position of a step top. It needs no other components; Trophy.podium in the api module adds it for you.

local stage = entity.spawn("stage")
stage.component.add("Podium", { look = "cartoon" })
local top = stage.component.get("Podium"):stepTop(1)