Unity.Cursory/BIBLE
Unity.Cursory — Project Bible
Single source of truth for what Unity.Cursory IS, is NOT, and the rules that keep it coherent. README says how to build and run it; the design and build order live in Unity.Multiplayer's RFC 0001 (summarised for this repo in rfc/0001-port-plan.md); this says how to think about the system.
Status legend: ✅ done (verified by a test/build) · 🟡 partial · ⬜ planned · living.
1. The one sentence
Unity.Cursory is Cursory's wordless co-op physics puzzle rebuilt in Unity 6 (6000.4.3f1): every player is a cursor on a shared top-down world, heavy bodies need several cursors pulling together, and the game runs on a dedicated server or a player-hosted listen server through Unity.Multiplayer.
2. The product promise
- Cursory's gameplay, unchanged. The same 14 levels, the same Mass dial, grabs, tethers, goals, circuit, votes and whistles. A port, not a redesign: Cursory's constants carry over, mapped onto Physics2D (see UC-LAW-2).
- Wordless co-op. No chat. A whistle (a coloured ripple and a per-player tone) is the whole vocabulary.
- Two topologies, one game. Host from a player's machine or join a headless dedicated server, by IP:port or a join code. The topology is configuration, not game code.
- Server-authoritative, latency-forgiving. A cursor is a light body on a soft, force-capped spring toward the player's pointer, and a grab is a rope from it, so latency softens the feel instead of breaking it.
- Real ropes, real leverage (UC-T33). The tether is a physical rope with a maximum length from the player's cursor to anywhere on a body's rim; it wraps the body's corners, carries tension both ways (a load heavier than your pull drags your cursor toward it) and turns what it pulls round a corner. Two players pulling opposite ends turn a bar that one player can't.
3. What it is NOT
- NOT client-authoritative. A client says "my cursor is at (x, y)" and "I grab / release / whistle / vote"; the server decides what that does (UC-LAW-1).
- NOT a chat or social app. There is no text channel.
- NOT a hand-rolled physics toy. Bodies are real Physics2D rigid bodies: ground friction is a
FrictionJoint2D, each cursor is a lightRigidbody2Dpulled by a force-cappedTargetJoint2D, and a grab is a max-lengthDistanceJoint2Drope from the cursor to the body, so cooperative drag, tug of war, pivots and torque come out of the solver. - NOT carrying Cursory's dead types.
SwitchTile,DoorandShapeAttachmentare not ported. - NOT using Cursory's accounts. The player's name and colour come from the MindAttic.Unity profile (UC-T12), so Cursory's cookie auth laws (CUR-LAW-5, -8, -9) have no counterpart here.
4. Architecture canon
The full design (physics mapping, body sync, level port, ticket chain) lives in the library's RFC 0001 and is not repeated here. The layout this repo keeps:
Assets/Unity.Cursory/Core Unity.Cursory.Core noEngineReferences: game rules, units, level data
▲ (compiled by Tests/Unity.Cursory.Core as netstandard2.1 / C# 9)
Assets/Unity.Cursory/Runtime Unity.Cursory.Runtime MonoBehaviours: camera, physics sim, networked cursor, HUD
▲ (references the library, Capture, Input System, URP 2D)
Assets/Unity.Cursory/Editor Unity.Cursory.Editor ProjectSetup: writes the URP 2D pipeline and Main scene
Tests/Core.Tests dotnet NUnit (net10.0) over Unity.Cursory.Core, no editor needed
Packages/manifest.json file:../../Unity.Multiplayer/unity/com.mindattic.unity.multiplayer
file:../../MindAttic.Media.Capture/unity/com.mindattic.media.capture
file:../../MindAttic.Components/unity/com.mindattic.components.unity (every menu and HUD widget)
file:../../Unity.Shared/unity/com.mindattic.unity.shared (the player's profile: name, colour)
- Rendering: URP with only the 2D renderer (
Assets/Unity.Cursory/Settings), a global 2D light, and a top-down orthographic camera looking down -Z at the XY world plane (TopDownCamera: zoom 1 shows one world pixel per screen pixel). - Physics: Physics2D, gravity 0 (top-down). From UC-T6 the server steps it in Script mode at 1/30 s from the network tick; clients never simulate.
- Packages resolve from the sibling checkouts, so the repo must sit next to Unity.Multiplayer, MindAttic.Media.Capture and MindAttic.Components (as it does under
D:\Projects\MindAttic).
5. The Laws
Unity.Cursory inherits the org-wide house rules in ../../MindAttic.HouseRules.md. Of note here: [HOUSE-LAW-8] (done is verified, not asserted), [HOUSE-LAW-12] (artifacts also live in the repo), [HOUSE-LAW-13] (LF-only, enforced by the root .gitattributes). It also inherits the library's laws: UM-LAW-1 (the server owns state) and UM-LAW-2 (game code talks to MindAttic types, not NGO).
Project-specific laws. Each names the Cursory law it ports.
UC-LAW-1 — The server owns the simulation
Ports CUR-LAW-1. A client sends only its cursor position ([ToServer], unreliable, rate-limited) and one-shot grab / release / whistle / vote intents. It never asserts where a body is. All physics, collision, tether and goal resolution run on the server (host or dedicated); clients only interpolate what the server replicates, so every client sees the same world.
UC-LAW-2 — Mass is the one legible dial
Ports CUR-LAW-2. A body moves exactly when the pulls on it sum past its printed Mass. One player's pull tops out at 1.5 mass units (pull strength 60 N ÷ 40 per unit of Mass), so anything heavier needs cooperating cursors. The Physics2D mapping that keeps this true: ground FrictionJoint2D maxForce Mass × 40, maxTorque × 1.2; rb.mass = Mass × 5; linear damping 1.5, angular 2.0. Since UC-T33 the pull reaches a body only through its rope: the cursor (0.1 kg, linear damping 30, no collider) is pulled toward the pointer by a TargetJoint2D with maxForce 60 (frequency 6, damping 1, so it caps about 42 px past where the cursor is held), and a taut rope carries that 60 N to the body; the thresholds are unchanged. Level masses stay clear of the 1.5 and 3.0 thresholds. A tuning change that breaks "one cursor moves 1.0 but not 2.0; two move 2.0" is a regression, whatever it looks like.
UC-LAW-3 — World pixels in data and on the wire; metres in the engine
Ports CUR-LAW-3. Levels, game rules and network payloads speak Cursory's world pixels. Physics2D and transforms run in metres, one Unity unit per metre, at WorldUnits.PixelsPerMeter = 100. The conversion happens only at the engine boundary, through WorldUnits (Assets/Unity.Cursory/Core/WorldUnits.cs).
UC-LAW-4 — Static geometry is sent once per level
Ports CUR-LAW-6. Walls and world labels never move, so they go to a client once when it joins and again on a level switch or reset, never on the per-tick body sync. Only moving state (bodies, cursors, goal and circuit state, votes) is replicated continuously.
UC-LAW-5 — Grabs land on the edge
Ports CUR-LAW-7. A grab projects the click to the nearest point on the body's perimeter (for a compound shape, on the nearest piece). You grab the rim, not the interior; an edge or corner grab is what gives a body torque. The raw click position, not a collision-resolved cursor, picks the grab.
UC-LAW-6 — Core is engine-free and tested without the editor
Game rules that don't need Unity live in Assets/Unity.Cursory/Core (noEngineReferences, C# 9) and are covered by dotnet test Tests/Core.Tests (NUnit). Runtime code is a thin layer over Core; a rule that can be decided without a MonoBehaviour is decided in Core.
UC-LAW-7 — Networking goes through Unity.Multiplayer
Sessions, RPCs and synced fields use the library (NetSession, NetEntity, [ToServer], [ToClients], [Synced]). The one recorded exception is body sync: NGO's NetworkTransform and NetworkRigidbody2D (x, y, rotation z; half precision; interpolated) sit behind an IBodySync interface so a compact snapshot can replace them without touching gameplay code.
Cursory laws not carried over
- CUR-LAW-4 (camelCase JSON wire format): there is no JSON wire; the library's binary RPCs replace it.
- CUR-LAW-5, CUR-LAW-8, CUR-LAW-9 (cookie claims, seeded users, bespoke auth): there are no accounts; identity comes from the MindAttic.Unity profile (§3).
6. Verified state
- ✅ Project skeleton (UC-T3): Unity 6000.4.3f1 project with URP 2D, the Main scene's top-down orthographic camera and global 2D light, gravity-free Physics2D, the Input System as the only input backend, and the local multiplayer and Capture packages. Opens and compiles in batch mode with no errors. Engine-free Core verified by
dotnet test Tests/Core.Tests(WorldUnitsTests,SimulationRateTests). - ✅ Core model and level schema (UC-T4):
Assets/Unity.Cursory/Core/Modelports Cursory'sGameState.csengine-free:Blockand compoundShape/ShapePiece(Mass),Wall,WorldLabel,BlockGoal/ShapeGoal(centre / every piece centre strictly inside), the circuit (CircuitComponentwithComponentKind,TerminalwithTerminalPolarity,Wire),Vote(VoteKind, 2/3 quorum, early rejection, 15 s timeout),Whistle, andTuning(Cursory's constants and the Mass rules:CursorsNeeded,IsClearOfThresholds).Core/Levels/LevelDatais the level schema (Unity-serializable fields, deepClone,Geometry()for UC-LAW-4,Validate()).SwitchTile,DoorandShapeAttachmentare not ported. Verified bydotnet test Tests/Core.Tests(TuningTests,GoalTests,VoteModelTests,LevelDataTestswith Cursory's levels 1, 3 and 14 as data). - ✅ Levels L1-L14, loader and votes (UC-T5):
Core/Levels/LevelSeedsports Cursory'sRoomState.SeedLevel1..14one for one, with Cursory's own Masses (1, 1.1, 1.3, 2, 2.2, 2.6), all clear of the 1.5 and 3.0 thresholds. The editor menuUnity.Cursory/Write Level Assets(LevelAssetWriter) writes them asLevelAssetScriptableObjects (Assets/Unity.Cursory/Levels/L01..L14.asset) and the orderedLevelLibrary(Assets/Unity.Cursory/Resources/Unity.Cursory/LevelLibrary.asset, found withLevelLibrary.Load()).LevelLoaderholds the current level, plays a copy (World), and raises the geometry-resend and level-banner flags on load and reset; the room's reset and level votes act on it throughCore/Levels/LevelVotes(the vote rules themselves moved to Unity.Multiplayer's votes kit in UM-T54). Verified bydotnet test Tests/Core.Tests:LevelSeedTests,LevelAssetTests(the committed assets read from their YAML equal the seeds),LevelLoaderTests,LevelVotesTests(UC-T5'sVoteAndLevelTests, ported from Cursory.Tests, until UM-T54) andSolvabilityTests(ported from Cursory.Tests: the block levels are auto-solved by two cursors and the shape levels 3, 9 and 12 make real progress, throughPullRoom, a headless stand-in for the physics built onTuning; UC-T6 checks the real Physics2D sim). - ✅ Server physics sim (UC-T6):
Runtime/Physics/PhysicsWorldbuilds a level's bodies in Physics2D, in metres at 100 px/m: each block and shape a dynamicRigidbody2D(mass = Mass × 5, gravity 0, linear damping 1.5, angular 2.0; a shape is one body with aBoxCollider2Dper piece) held to the world by aFrictionJoint2Dat its centre of mass (maxForceMass × 40, maxTorque× 1.2), each wall a static collider, and each grab aTargetJoint2D(maxForce 60, frequency 5, damping 0.7, target set by hand) anchored on the rim byCore/Physics/GrabGeometry(UC-LAW-5, Cursory'sProjectToEdge).Runtime/Physics/ServerSimulationputs Physics2D in Script mode (also the project setting, so a client never simulates) and steps the world 1/30 s per tick of the session clock (NetSession.Clock, NGO'sNetworkTickSystem.Tick), attaching only when the bound session runs as a Host or Server. Verified by the PlayMode suiteAssets/Unity.Cursory/Tests/PlayMode(ServerPhysicsTests: one cursor moves Mass 1.0 but not 2.0, two move 2.0, an edge grab turns a bar, nothing moves without a tick, and a dedicated-server session steps once per network tick) anddotnet test Tests/Core.Tests(GrabGeometryTests). - ✅ Networked cursor and body sync (UC-T7):
Runtime/Net/CursorAvataris the player object (aNetEntity, one per connection, prefabResources/Unity.Cursory/CursorAvatar). Its owner sends[ToServer]intents only (UC-LAW-1):Move(Vector2)(unreliable, 30/s),Grab,GrabShape,GrabWall,GrabWireEnd,Release; the server applies them to the boundServerSimulation'sPhysicsWorldand writes the[Synced]Positionevery peer draws.Held/HeldId/HeldAnchor/HeldWireEndAare the server's record of what a cursor holds (a wall or wire end is bookkeeping for UC-T8/UC-T9). Code drives a cursor the same way input does:CursorAvatar.Local(session),ForClient,Alland the staticSpawned/Despawnedevents find cursors on any peer. Bodies replicate throughIBodySync(NgoBodySync:NetworkTransformx, y, rot z, half precision, interpolated, plusNetworkRigidbody2D, prefabResources/Unity.Cursory/NetworkedBody; the UC-LAW-7 exception). Each body carries Unity.Multiplayer'sNetKeywith its level block or shape id (UM-T60): the server spawns it withNetSession.Objects.Spawn(prefab, id, ...)and despawns it at once when the world is torn down (IBodySync.DespawnBody, so a reset can respawn the same ids that tick), and every client finds it by that id inNetSession.Objects(ClientBodies.Collect), never by spawn order. Static geometry goes out once per level as the[ToOwner]ReceiveGeometryon spawn and after a load or reset (GeometryBroadcast, UC-LAW-4).NetPrefabs.RegisterAll(session)registers both prefabs and returns the body sync; the editor menuUnity.Cursory/Write Networked Prefabs(NetPrefabWriter) writes them. Verified by the PlayMode suitesCursorAvatarHostAndClientTests(host + client) andCursorAvatarServerAndClientsTests(dedicated server- two clients).
- ✅ Goals, circuit and win detection (UC-T9):
Core/Rules/CircuitRulesports Cursory'sSnapWireEnd(a released wire end plugs into the nearest terminal withinTuning.WireSnapRadius= 90 px, inclusive, and moves onto it; else it stays loose where dropped) andEvaluateCircuit(the bulb is lit only when the plugged wires close battery+ to battery− and removing either the bulb's or the resistor's internal edge breaks the loop).Core/Rules/LevelProgressis the server's goal pass over a played level: block goals (centre strictly inside), shape goals (every piece centre strictly inside), the bulb, the win (every goal solved and, with a circuit, the bulb lit), and the wires' live state (a cursor's grabbed end unplugs, follows the cursor, snaps on release).Runtime/Levels/LevelStateServerruns that pass after everyServerSimulationstep against the Physics2D poses and publishes it throughRuntime/Levels/LevelStateSync, a server-ownedNetEntity:[Synced]level number, goal count, solved bitmask (block goals then shape goals), circuit, bulb and win, plus the wires (ends and plugged terminal indices) by a reliable[ToClients]call on change and a[ToClient]answer to a late joiner's[ToServer]request.LevelServerspawns that entity (prefabResources/Unity.Cursory/LevelState, written byNetPrefabWriter) and runs the pass on a server session; the trackedLevelProgressisServerSimulation.Progress, re-tracked after a load or reset, and the UC-T7 cursor'sGrabWireEnd,MoveandReleasepick a wire end up, drag it and snap it through it. Verified bydotnet test Tests/Core.Tests(CircuitTests, ported from Cursory.Tests, andGoalProgressTests) and PlayModeLevelStateServerTests(a real grab drags a block onto its pad; wiring level 14 lights the bulb on the next tick) andLevelStateSyncTests(host and client over loopback: goal, win, bulb and wires reach the client; a late joiner gets the wires),CursorAvatarServerAndClientsTests.GrabWireEnd_FollowsTheCursor_AndSnapsOntoATerminalOnReleaseandLevelServerTests. - ✅ Votes and whistles (UC-T10; votes on the library since UM-T54): the room's votes are Unity.Multiplayer's votes kit.
LevelServerspawns the library'sVoteBoard(its own prefab, registered byNetPrefabs.RegisterAllthroughVoteBoard.RegisterPrefab) on every server session and registers Cursory's two kinds withLevelServer.AddVoteKinds:reset("Reset the level?", re-seeds the level) andlevel("Switch to Level N?", the number payload; refused for the current level or one that doesn't exist), worded and checked byCore/Levels/LevelVotes. The library runs the rules Cursory had in its ownVoteBox(2/3 quorum rounded up, early rejection once the quorum is unreachable, 15 s on the session's tick clock, a leaver dropped and the quorum recomputed, one vote at a time) and the HUD's toolbar starts votes withStartVote; the vote itself shows in the library'sVoteOverlay(question, tally, Yes/No, result toast). Whistles stay Cursory's:Runtime/Whistles/WhistleBoard, a scene-level, server-ownedNetEntity(prefabResources/Unity.Cursory/WhistleBoard) whoseWhistle(worldPx)([ToServer], no ownership, rate-limited) is broadcast[ToClients]with the whistler's colour and tone (Core/Model/WhistleTone: Cursory's 12 tones, 440 Hz + 35 Hz a step, keyed by seat). Verified bydotnet test Tests/Core.Tests(LevelVotesTests,WhistleToneTests), Unity.Multiplayer's own vote suites, and the PlayMode suite (WhistleBoardTests: Cursory's level and reset votes over loopback with a host and two clients, refusals with their reasons, and a whistle reaching every peer;PresentationTests: the HUD starting votes and the library overlay showing them). - ✅ Level reload rebuilds the physics (UC-T20): on the tick after the
LevelLoaderloads or resets a level (a passed vote, or any caller),ServerSimulation.RebuildWorldmakes every cursor let go (CursorAvatar.ReleaseAll), tears down the oldPhysicsWorld(its rigid bodies leave the simulation at once, the networked copies despawn) and builds the new level's with the sameIBodySync, then raisesWorldRebuiltand the geometry resend. Verified by the PlayModeLevelReloadTests(a reset mid-grab and a level switch mid-grab, host + client). - ✅ Tethers and per-player settings (UC-T8; its grab joint, leash and segmented-tether switch were replaced by UC-T33's physical cursor and rope, below): each player's own
[Synced]SegmentedTetherandCursorCollisionon theirCursorAvatar(both off by default), set by the owner through the[ToServer]SetSegmentedTether(bool)/SetCursorCollision(bool)(the in-game menu's switches call these), replacing Cursory's room-wide booleans that every player's toggle overwrote. The server honours each cursor's own choice: with collision, aMoveis pushed out of walls and shapes by the 10 px cursor disc (Core/Physics/CursorCollision, blocks stay non-solid as in Cursory); with a segmented tether, the rope catches on body corners (Core/Physics/TetherWrap) andPhysicsWorld.UpdateTetherre-anchors the grab'sTargetJoint2Don the last caught corner each tick, so pulling round a corner turns the body. Every grab's cursor is leashed withinMaxPullPx300 of the rope's contact. The rope (anchor, caught corners) replicates as the[Synced]Tether(TetherSync, world pixels);CursorAvatar.TryGetRopegives any peer the polyline andTetherRendererdraws it with aLineRendererin the player's colour on hosts and clients. One change from Cursory: its unwind test never fired (the rope starts on the rim, inside its 6 px margin), so a caught corner now lets go when the rope's bend flips. Verified bydotnet test Tests/Core.Tests(TetherGeometryTests,TetherWrapTests,CursorCollisionTests) and the PlayMode suitesTetherPhysicsTestsandTetherAvatarTests(dedicated server + two clients). - ✅ Client presentation (UC-T11):
Runtime/Presentation/CursoryClientis everything a player sees and does, bound to oneNetSession; a player build creates it at scene load next toNetBootstrap, and a headless process (-batchmode, a dedicated server build,-bot) creates none (CursoryClient.ShouldPresent). Input is the Input System mouse, turned into intents only (UC-LAW-1) byPointerInput: a press on a wire end, shape, block or wall (Core/Presentation/BodyPicker, Cursory's pick order, against the client's own copy of the level and the replicated poses, found by block/shape id inClientBodies) grabs it and the release lets go; a press on empty space followsCore/Presentation/PointerGesture(5 px of travel pans the camera, a release within 250 ms whistles through theVoteBoard); the wheel zooms about the pointer in 0.1 to 4 (Core/Presentation/CameraView, whichTopDownCameranow follows).WorldViewdraws goal pads (green when solved), walls, circuit, bodies with their Mass, wires, every cursor as an arrow with a name tag, and whistle ripples;WhistleAudioplays each player'sWhistleToneas a synthesized clip. All menus and HUD widgets come from MindAttic Components (com.mindattic.components.unity):CursoryHudis aMaToolbar(levelMaSelectthat proposes a level vote, Reset, a connectionMaStatusPillthat pulses while connecting, a pause button), the level banner is anMaBanner(fades in and out), vote endings and wins areMaToasts, and the minimap is anMaMinimapthat auto-fits the level's walls, goals and bodies with 8 px of padding (cursors and the camera's view are drawn but not fitted) and pans the camera on a click (UC-T23: the HUD widgets were promoted into MindAttic Components as M.COMP-T46); the per-player switches arePlayerSettingsItems, addable to anyMenuScreen(UC-T12 puts them on the library front end's in-game menu). Player colours and names come from Unity.Multiplayer's player roster since UM-T55 (NetSession.Roster, on every peer, filled from the connection approval payload, with the seat's palette colour for a player who kept the default white, and following a mid-gameRequestChange): the server writes only the owner's seat onto the cursor ([Synced]SeatIndex), andCursorAvatar.Player/PlayerColor/PlayerNamelook the player up by seat, so the rope, arrow, name tag, minimap dot and whistle ripple (WhistleBoardandCursoryClientread the roster too) all follow a rename; Cursory's own seat palette is gone. Verified bydotnet test Tests/Core.Tests(PointerGestureTests,CameraViewTests,BodyPickerTests,HudTextTests) and the PlayModePresentationTestson a real Host (click vs drag vs grab, the zoom clamp, the HUD following and voting through the board and level state, the minimap fitting level 1 with padding and panning the camera, the payload's colour and name, a rename reaching cursor and rope) andFrontEndTests(a client's rename reaching the host's cursor and lobby). - ✅ Front end (UC-T12): Cursory adopts the library's drop-in
NetFrontEndexactly as a new game does (Unity.Multiplayerdocs/articles/front-end.md), with no menu code of its own.Main.unityhas it beside theNetBootstrap(MindAttic ▸ Multiplayer ▸ Add Front End, scripted asProjectSetup.SetUpFrontEnd/ menuUnity.Cursory/Set Up Front End) withSettings/FrontEndSettings.asset(title "Cursory", every other field the library default). It gives the main menu (Host, Join by IP, Join by code, Settings, Quit), the host's lobby with its join code and roster, the connecting dialog, a plain-words dialog for every disconnect reason, the automatic reconnect to the same seat, and the Esc in-game menu. The player's name and colour come from the MindAttic profile (com.mindattic.unity.shared, the library'sProfileIdentitySource) into the approval payload, which UC-T11 already copies onto the cursor, rope, whistle and minimap. Cursory adds only:CursoryClienthands itsPlayerSettingsItemstoAddPauseMenuItems, the HUD's pause button opens the front end's in-game menu, the HUD (toolbar, vote overlay, banner, minimap) shows only while the front end isInGame, and the world ignores the pointer while any of its menus is up. Cursory's ownCursoryPauseMenuis gone. A headless process (dedicated server, CI) builds no menus (the library'sNetLaunch.ShowsMenus), and neither does a-bot(the same rule, since UM-T57). Verified by the PlayModeFrontEndTests(host from the menu and a client joining by the lobby's code into level 1, HUD hidden in the menus and shown in game, the in-game menu's switches reaching the server, a version refusal and the host ending the game each explained, the scene's wiring) on the library's test kits (Unity.Multiplayer.Testing,Unity.Multiplayer.UI.Testing), withBotEndToEndTestsunchanged. - ✅ End-to-end bots (UC-T14; on the library's bot mode since UM-T57): two headless bots, A and B, join a dedicated server on level 2 by code and drag its Mass 2.0 block around the wall onto the pad together. Cursory's only bot code is the strategy:
Runtime/Bots/CursoryBot, the game's[NetBotDriver], plays CoreBotPlan(BotPlanTests) and passes on UC-T9's synced win. The library does the rest:-bot, joining by-joincodefile, the server writing its code,-scenario 2(read byLevelServer.StartLevel), the verdict lines,mp-host game smokewithmp-host.json'sbots/scenario, and the reusable nightlygame-smoke.yml. Verified by the PlayModeBotEndToEndTestson the library'sNetBotTest, and bymp-host game smokeunder Docker Compose. - ✅ Physical cursor and real rope (UC-T33, replacing UC-T6/UC-T8's grab joint on the body): every player's cursor is a server-simulated dynamic
Rigidbody2DinPhysicsWorld(Tuning.CursorMassKg0.1 kg, linear damping 30 so a free cursor tops out near 2000 px/s and a rope it snaps taut only nudges a heavy body, rotation frozen, no collider, so it passes over bodies as in Cursory) pulled toward the pointer by aTargetJoint2Dcapped at the player's pull strength (Tuning.GrabMaxForce60 N,CursorFrequency6 Hz,CursorDamping1).PhysicsWorld.MoveCursoraims the spring,Grab/GrabWalltie the rope: aDistanceJoint2DwithmaxDistanceOnlyfrom the cursor to the rim anchor (anywhere on the rim, UC-LAW-5; a corner grab gives the most leverage), always on. Each tick (Step)Core/Physics/TetherWrapre-wraps the rope round the body's corners for where the cursor is (a rope that would cut the body slides to the corner it can reach most nearly toward the cursor, so a corner grab wraps the next corner along) and the joint is re-anchored on the last caught corner withTuning.RopeLengthPx(300) less the chain's length (TetherGeometry.FreeLength); after the step a cursor the solver let drift past its rope's end is put back on it, so a rope never stretches past its length. A slack rope pulls nothing; a taut one carries the spring's pull to the body and the body's weight back to the cursor, so a load heavier than its pull drags the cursor toward it (tug of war) and a rope pulled round a corner turns the body toward the player.CursorAvatarwrites the[Synced]Positionfrom the cursor's body after each tick and the new[Synced]PointerfromMove;WorldViewdraws the cursor atPositionand a faint ghost at the pointer (your own at your hand). The UC-T8 leash,SegmentedTetherand its pause-menu switch are gone (PlayerSettingsItemskeeps "Cursor collision", which now pushes the pointer out of walls and shapes). Bots and the solvability harness point a rope's length past their waypoint (BotPlan.CursorTarget;PullRoompulls only through a taut rope, byTuning.CursorPull), and L1-L14 keep their Masses. Verified bydotnet test Core.slnx(TuningTests,TetherGeometryTests,TetherWrapTestswith the corner-grab wrap,SolvabilityTestswithHarness_pulls_only_through_a_taut_rope,BotPlanTests) and the PlayMode suitesPhysicalCursorTests(a free cursor follows its pointer; a heavy block holds a lone cursor at its rope's end; tug of war drags the lone cursor; a corner grab pulled round a corner spins the body clockwise toward the player; the rope never stretches past its length; one player cannot turn a 280 × 40 Mass 2.0 bar into a 120 px hall in 10 s, two on opposite ends can),HallBotTests(the same with bot clients on a dedicated server, on the library'sNetSessionTest),ServerPhysicsTests,TetherPhysicsTests,TetherAvatarTestsandBotEndToEndTests.
7. Active frontier
The Unity.Cursory tickets UC-T7 to UC-T15 in the library's RFC 0001 ticket chain, tracked in USER_STORIES.md.
8. Glossary
- World pixel — Cursory's unit; 100 to a metre (UC-LAW-3).
- Mass — a body's printed weight and its move threshold (UC-LAW-2).
- Cursor — a player's light physical body, pulled toward their pointer by a capped spring (UC-T33).
- Pointer — where the player points; the cursor's spring pulls toward it. Drawn as a faint ghost.
- Grab / tether / rope — a max-length
DistanceJoint2Dfrom the cursor to a body's rim anchor, wrapping the body's corners (UC-T33). - Tick — one 1/30 s server step.
- Geometry — the static walls and labels sent once per level (UC-LAW-4).
- Whistle — a click ping: a coloured ripple and a per-player tone; the only comms.
- Vote — a reset or level switch needing a 2/3 quorum of the roster.