Play boules at Ryds motionscentrum #70
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elsie/liuverse#70
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ryds motionscentrum has a boules court:
It is a real, flat, gravelled court next to the outdoor gym and the Rydskogen
disc golf course. Today it is another
AREA_PITCHpolygon.Proposal: a boules/pétanque round.
jack wins the round. The throw is the same kind of projectile as #11, but it
rolls on gravel instead of flying, so the interesting part is the surface.
though a shared score fits the existing relay if it is cheap.
lit=no, so a night round is a flashlight game; the adjacentoutdoor gym is
lit=yes, which gives the place a nice contrast.This is the smallest complete sport on campus: one court, one target, a rule
everyone already knows.
Related
This one is the clearest case for a physics engine. "The throw is the same kind
of projectile as #11, but it rolls on gravel instead of flying, so the
interesting part is the surface" is very nearly a description of a rigid body
with a friction coefficient.
#112 gives the round its shared machinery: a boule as a body with a mass, a
restitution and a friction, on a gravel surface. Then the round becomes a
real round. A boule thrown too hard overshoots the jack. A boule that lands
on the slope of the court rolls away from it. The closest boule to the jack
wins because it is closest, not because a comparison said so — which is the
whole difference between a game and a spreadsheet.
The court is
leisure=pitch sport=boules surface=gravel, so the bake alreadybuckets it as a pitch area and the gravel is one tag away; reading the exact
surface=is the pitches work's job. The collision layer can start with thecoarse bucket.
Scoring stays where this issue puts it: closest to the jack wins, and a round
needs no more server authority than the boule positions, which are
server-authoritative like every other thrown body.
Related: #110 the physics engine, #112 the shared thrown body.
The court and the surface exist. The round does not.
The boules court bakes as a gravel pitch now:
sport=boules|petanquemaps toAREA_PITCH_GRAVEL, andsurface=gravelmaps to the same kind, so it is no longer a plainAREA_PITCHpolygon.The campus also has a per-surface ground model to build on:
surface_classinliuverse-sim::vehiclereturns ice for the track, soft for grass, forest, pitches, gravel and the minigolf, and paved for everything else. That is three classes rather than the fine material this issue wants, but it is the shape a boule would need: a body with a mass, a restitution and a friction, landing on a surface that decides what it does next.Still missing: the jack, the boules, the throw and the round. The only throw in the game is the football's parabola in
liuverse-sim::throw, which is a curve and a comparison, not a body.