auto-git:

[change] tests/unit/third-person-navigation-controller.test.ts
This commit is contained in:
2026-05-01 16:30:50 +02:00
parent 4f665667ee
commit 767ecc9def

View File

@@ -699,7 +699,8 @@ describe("ThirdPersonNavigationController", () => {
z: true
}
});
context.probePlayerGround = vi.fn((feetPosition: Vec3) => {
Object.assign(context, {
probePlayerGround: vi.fn((feetPosition: Vec3) => {
const distance = feetPosition.y - topY;
return feetPosition.z > 0.1 && distance >= 0 && distance <= 0.6
@@ -715,10 +716,11 @@ describe("ThirdPersonNavigationController", () => {
normal: null,
slopeDegrees: null
};
});
context.canOccupyPlayerShape = vi.fn(
}),
canOccupyPlayerShape: vi.fn(
(feetPosition: Vec3) => feetPosition.y >= topY && feetPosition.z > 0.1
);
)
});
const controller = new ThirdPersonNavigationController();
controller.activate(context);