Log inGet started
Package

chandelier.module

Newest version

README.md

demo.props.chandelier

The chandelier's geometry, the wreck it lands as, and the glass it throws. Build-time only — every motion lives in PropsChandelier.

The build

M.build(parent) places the pivot at the ceiling (M.CEILING_Y = 14) so a swing is a rotation of the pivot, and hangs the body below it on a cable; the body is what falls. Two brass tiers, twelve scrolled arms with an open elbow so the room is visible THROUGH the chandelier, catenary swags of cut drops slung between the arm tips, four rows of pendants and a fringe under the lower ring — about 140 crystal drops in all, which is what catches the sodium and the lightning and what reads as a chandelier from across a dark room.

One candle on arm 4 is still alight. It is the room's last practical before the fall, it is what the moths in shot 6 orbit, and it is the only emissive surface on the whole fixture.

The wreck and the glass

M.buildWreck(parent) places both, inactive. The wreck is the same rings, column and arms splayed and dropped, with a BoxCollider so it is a real obstruction the rest of the room meets. The glass is M.SHARDS = 96 octahedra at their rest positions.

M.shardRest(i) is where shard i comes to rest on the checkerboard, and its size — pure arithmetic on the shard index against a fixed salt, so two takes throw the same glass. PropsChandelier flies each shard from the impact point to that rest position and leaves it there.