Implement evidence-backed VR02 Rocketship flight and ownership

This commit is contained in:
UnixNight committed 2026-11-03 16:42:09 -05:00
1 parent 312efccb77
commit e77add5fdf
50 files changed
+4326 -66

No files matched your search

+9 -4
View File
@@ -13,7 +13,7 @@ public readonly record struct OrdinaryBodyStep(OrdinaryBodyState Body, Vector3 P
Vector3 SupportAnchor, SupportHit? SupportHit, BodyLandingObservation? Landing,
CameraRayPolygon? Contact, int CollisionPasses, int TriangleTests);
public enum BodyResponseProfile { Jimmy, Baseball }
public enum BodyResponseProfile { Jimmy, Baseball, Rocketship }
/// <summary>
/// Bounded479D20 composition: enabled integration/support/pairs/static flags,
@@ -77,8 +77,13 @@ public sealed class OriginalBodyPhysics
// post-callback previous/live-root equality test permits publication.
if (move.CallbackPolygon is { } contact && contact.StoredNormal.Y <= -.7f)
{
if (velocity.Y > 0) velocity.Y = 0;
if (acceleration.Y > 0) acceleration.Y = 0;
if (profile == BodyResponseProfile.Rocketship)
velocity.Y = -120; //43EB70: unconditional; acceleration survives.
else
{
if (velocity.Y > 0) velocity.Y = 0;
if (acceleration.Y > 0) acceleration.Y = 0;
}
}
else if (profile == BodyResponseProfile.Baseball && move.CallbackPolygon is { } wall)
{
@@ -105,7 +110,7 @@ public sealed class OriginalBodyPhysics
if (geometryEnabled)
{
var support = OriginalBodySupport.Resolve(new(position, previous, velocity, acceleration, radius, factor,
PreventLowering: profile == BodyResponseProfile.Jimmy),
PreventLowering: profile != BodyResponseProfile.Baseball),
wasSupported, (start, end, sides) => collision.TraceSupport(start, end, sides));
if (support.Supported)
{