Restore tutorial return placement and source terrain collision eligibility
This commit is contained in:
1 parent
ca08c468ba
commit
8d60a68511
36 files changed
+991
-69
No files matched your search
@@ -5,8 +5,8 @@ namespace GamePort.Game;
|
||||
|
||||
/// <summary>
|
||||
/// Provisional geometric reconstruction for the controllable-scene checkpoint.
|
||||
/// Uses source triangles, including invisible proxies, without claiming the
|
||||
/// original game's unrecovered collision-mask/state rules or solver tolerances.
|
||||
/// Uses source terrain-eligible triangles, including invisible proxies. NC shape
|
||||
/// exclusion is recovered; remaining masks/state rules and solver are provisional.
|
||||
/// Positions are the bottom of a vertical capsule in original Y-up world units.
|
||||
/// </summary>
|
||||
public sealed class SceneCollision
|
||||
@@ -35,6 +35,8 @@ public sealed class SceneCollision
|
||||
// proxies remain present and block movement in this provisional policy.
|
||||
for (var i = 0; i < mesh.Indices.Length; i += 3)
|
||||
{
|
||||
if (mesh.CollisionPolygons.Length == mesh.Indices.Length / 3
|
||||
&& !mesh.CollisionPolygons[i / 3].TerrainCollision) continue;
|
||||
// EXE4798B3 registers only stored normal.Y<.7 in the wall/ceiling
|
||||
// grid. Render normals and a recomputed cross product differ.
|
||||
if (wallsAndCeilingsOnly && mesh.CollisionPolygons[i / 3].Normal.Y >= .7f) continue;
|
||||
|
||||
Reference in new issue
Block a user