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

@ -167,6 +167,8 @@ namespace GrassCutter.EditorTools
ground.spires = new[] { Model("SM_Spire_A"), Model("SM_Spire_B"), Model("SM_Spire_C") };
ground.trees = new[] { Model("SM_Generic_Tree_01"), Model("SM_Generic_Tree_02"), Model("SM_Generic_Tree_03") };
ground.bush = Model("SM_Prop_Plant_Bush_03_L");
ground.stones = new[] { Model("SM_Boulders"), Model("SM_SlabStones"), Model("SM_Crystals") };
ground.growths = new[] { Model("SM_Shrooms"), Model("SM_Stump"), Model("SM_BulbPlants") };
var deck = new GameObject("Deck").AddComponent<DeckManager>();
deck.tileModel = Model("SM_DeckTile");
@ -193,7 +195,10 @@ namespace GrassCutter.EditorTools
var cabin = Place("SM_CrewCabin", new Vector3(-6f, 0f, 7f), 180f, rig);
if (cabin)
{
SolidAt("CabinBox", new Vector3(0f, 1.6f, 0f), new Vector3(5.8f, 3.2f, 3.8f), cabin.transform);
// the walls up to the eaves (2.6 m) as a box, the roof above them as drawn (the box used to stand 0.6 m
// proud of the eaves, and a body landed inside the roof)
SolidAt("CabinBox", new Vector3(0f, 1.3f, 0f), new Vector3(5.8f, 2.6f, 3.8f), cabin.transform);
Hull(cabin.transform, cabin.transform, "Hull_CrewCabin", 2.4f, 3.7f); // the chimney stays out of it
Blocker(cabin, Vector3.zero, new Vector2(5.8f, 3.8f));
}
@ -352,6 +357,8 @@ namespace GrassCutter.EditorTools
{
var go = Place(model, pos, yaw, rig);
if (!go) return;
// where the floor is, in the world: pos is the rig's, the bounds are the world's
float floor = go.transform.position.y;
go.transform.localScale *= scale;
// pack props are not all pivoted at their base (the hay bale sits at its middle): stand the lowest point on the floor
var rs = go.GetComponentsInChildren<Renderer>();
@ -359,7 +366,7 @@ namespace GrassCutter.EditorTools
{
var b = rs[0].bounds;
foreach (var r in rs) b.Encapsulate(r.bounds);
float sink = pos.y - b.min.y;
float sink = floor - b.min.y;
if (sink > 0.01f) go.transform.position += Vector3.up * sink;
}
SolidAt("Solid", new Vector3(0f, height * 0.5f, 0f), new Vector3(size, height, size), go.transform);