fix(cut11b): structural fixes for all 7 Soul Pass #1 walker, drop, and net defects

This commit is contained in:
Meta Vens 2026-12-06 01:45:10 +01:00
commit cca6ad821b
15 changed files with 699 additions and 370 deletions

View file

@ -197,11 +197,19 @@ public sealed class VehicleVisualInstance
float effectiveScale = targetHalfHeight.HasValue && pkg.HalfHeight > 1e-4f
? visualScale * (targetHalfHeight.Value / pkg.HalfHeight)
: visualScale;
bool isWalker = role != VehicleVisualRole.SalvageDrop &&
(pkg.Mobility == MobilityKind.Walker ||
pkg.Plane == GridPlane.Coronal ||
string.Equals(pkg.Id, "manticore", StringComparison.OrdinalIgnoreCase) ||
string.Equals(pkg.Id, "bastion", StringComparison.OrdinalIgnoreCase));
float groundOffset = isWalker
? WalkerGeometrySpec.GetForChassis(pkg.Id).ModelRideHeight * effectiveScale
: halfHeight;
var root = new Node3D { Name = $"Actor_{chassisId}" };
Vector3 modelScale = new(effectiveScale, effectiveScale, effectiveScale);
// Align glTF grounded minY=0 to physics chassis bottom (-halfHeight)
Vector3 modelPos = new(0f, -halfHeight - template.MinY * effectiveScale, 0f);
// Align glTF grounded minY=0 to physics chassis bottom (-groundOffset)
Vector3 modelPos = new(0f, -groundOffset - template.MinY * effectiveScale, 0f);
if (role == VehicleVisualRole.SalvageDrop)
{