Round 6 fixes: held tools, headlamp glare, ladder openings, level horizon, roof hulls, rain hits, idle motion, belt packs, meadow variety

- Held tools sit lower and further right; the hammer faces forward and strikes about the camera's right
- Headlamp leaves held items, treats and vending machines alone (rendering layer NoLamp); other lights keep lighting them
- Hay grounded on the floor in world space (it floated)
- Deck fence opens at each ladder, rail colliders split around it; ladders moved to 2 m off the edge middle, clear of the intakes; climbing goes over a rail only if one is in the way
- Crew stand to the soil's up (Planet.Level): flat round the base, the ball's up past it, so the horizon stays level on a small planet
- Convex roof hulls for the crew cabin, garage, pitched roof and windmill tower; cabin box lowered to the eaves
- Rain and acid rain hits differ by surface: soil, grass, wood, metal
- Idle motion: dishes pan, sways sway, sensors turn, eyes blink, windmill turns in the breeze, reels and parked rotors tick over
- Belt: take tools off at the supply wall; hold E at a vending machine for a pack of 3 on the belt, LMB has one
- New meadow pieces: boulders, slab stones, crystals, mushrooms, stump, bulb plants
- -demofix checks for all of the above; loc rows in all 11 tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-12-01 22:52:05 +06:00
parent fd20af06ae
commit 36e4bb2a10
88 changed files with 7588 additions and 4926 deletions

View File

@ -69,6 +69,20 @@ namespace GrassCutter
public static Quaternion Frame { get; private set; } = Quaternion.identity;
public static Vector3 Up(Vector3 p) => (p - Center).normalized;
/// <summary>
/// Which way the soil itself faces: straight up on the flat the base stands on, the ball's own up out past it, blended
/// across the ring where the flat bends down onto the ball. Standing to this keeps the horizon level: on a small
/// ball the flat's far side leans tens of degrees off the ball's up, and a head stood to the ball saw it tilted.
/// </summary>
public static Vector3 Level(Vector3 p)
{
var up = Up(p);
float s = Mathf.Sqrt(Mathf.Max(0f, 2f - 2f * up.y)) * Radius;
if (s >= ClearB) return up;
if (s <= ClearA) return Vector3.up;
return Vector3.Slerp(Vector3.up, up, Mathf.SmoothStep(0f, 1f, (s - ClearA) / (ClearB - ClearA))).normalized;
}
public static Vector3 OnSurface(Vector3 dir) => Center + dir * (Radius + HeightAt(dir));
public static Vector3 Surface(Vector3 p) => OnSurface(Up(p));
public static bool InNorthCap(Vector3 p) => p.y > NorthCapY;