Base fixes: climb over the railing, hay on the deck, no yard logs, console back, logo T

- Climbing up from the meadow rises straight up the side until the feet clear the
  railing, goes over it and drops onto the deck, instead of an arc through the fence.
- Props stand their lowest point on the floor (the hay bale was half under the deck).
- The timber bay lines on the unloading yard are gone.
- SM_Terminal: the chalkboard's back stands proud of the frame bars, no more
  flickering where their back faces shared a plane.
- Logo: the scythe standing in for the first T of CUTTERS is now a plain T
  (Tools/ui/logo_t.py copies the second T); menu logo, Steam capsules and the
  demo's capsules rebuilt from it.
- -demofix: close shots of those spots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-12-01 18:08:13 +06:00
parent b08fa7a57e
commit 88c1ee9202
34 changed files with 5886 additions and 6078 deletions

View File

@ -209,7 +209,7 @@ namespace GrassCutter.EditorTools
gb.center = new Vector3(0f, 0f, 3.2f); gb.halfSize = new Vector2(1.7f, 3.4f);
}
// the unloading yard: packed earth at the foot of the ramp where machines tip what they've cut, bays marked with logs
// the unloading yard: packed earth at the foot of the ramp where machines tip what they've cut
var pad = new GameObject("UnloadYard");
pad.transform.SetParent(rig, false);
pad.transform.position = new Vector3(0f, GameDefs.WaterY, -20f);
@ -222,18 +222,6 @@ namespace GrassCutter.EditorTools
slab.transform.localScale = new Vector3(18f, 0.1f, 16f);
slab.GetComponent<Renderer>().sharedMaterial = Mat("M_Yard");
slab.isStatic = true;
for (int i = -2; i <= 2; i++)
{
if (i == 0) continue;
var line = GameObject.CreatePrimitive(PrimitiveType.Cube);
line.name = "BayLine";
Object.DestroyImmediate(line.GetComponent<Collider>());
line.transform.SetParent(pad.transform, false);
line.transform.localPosition = new Vector3(i * 2.6f, 0.05f, -1.0f);
line.transform.localScale = new Vector3(0.22f, 0.14f, 8f);
line.GetComponent<Renderer>().sharedMaterial = Mat("M_Timber");
line.isStatic = true;
}
// no shed at the base: bought and called machines park on the yard by the dock (garages players build keep theirs)
@ -365,6 +353,15 @@ namespace GrassCutter.EditorTools
var go = Place(model, pos, yaw, rig);
if (!go) return;
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>();
if (rs.Length > 0)
{
var b = rs[0].bounds;
foreach (var r in rs) b.Encapsulate(r.bounds);
float sink = pos.y - 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);
Blocker(go, Vector3.zero, new Vector2(size + 0.4f, size + 0.4f));
if (!lamp) return;