Skip to content

Commit

Permalink
Remove multiple bounding radius
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed Sep 8, 2024
1 parent c99d616 commit 9b9a804
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,7 @@ static void AddSubMesh(DivSubMesh subMesh, GX2IndexFormat format, ref Shape shap
Center = new Vector3F(center.X, center.Y, center.Z),
Extent = new Vector3F(extent.X, extent.Y, extent.Z),
};
float sphereRadius = System.Numerics.Vector3.Distance(center, subMesh.Max);

shape.SubMeshBoundings.Add(boundingBox);
shape.RadiusArray.Add(sphereRadius);
}

private static float CalculateRadius(float horizontalLeg, float verticalLeg)
Expand Down

0 comments on commit 9b9a804

Please sign in to comment.