Skip to content

Commit

Permalink
Added yuyuyu customization for hole.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Nov 25, 2024
1 parent f6afa40 commit 31bd38f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions vnavmesh/Customizations/Z1242Yuweyawata.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using FFXIVClientStructs.FFXIV.Common.Component.BGCollision.Math;
using System.Numerics;

namespace Navmesh.Customizations;

[CustomizationTerritory(1242)]
class Z1242Yuweyawata : NavmeshCustomization
{
public override int Version => 1;

public override void CustomizeScene(SceneExtractor scene)
{
// avoid the hole in last boss arena
var scale = new Vector3(11, 1, 11);
var transform = Matrix4x3.Identity;
transform.M11 = scale.X;
transform.M22 = scale.Y;
transform.M33 = scale.Z;
transform.Row3 = new(34, -87.9f, -710);
var aabb = new AABB() { Min = transform.Row3 - scale, Max = transform.Row3 + scale };
scene.Meshes["<cylinder>"].Instances.Add(new(0xbaadf00d00000001ul, transform, aabb, SceneExtractor.PrimitiveFlags.ForceUnwalkable, default));
}
}

0 comments on commit 31bd38f

Please sign in to comment.