From 2c9c3a87c53f1f2ce78abe4a1e10c65f6c35568a Mon Sep 17 00:00:00 2001 From: Andrew Masiye Date: Thu, 6 Aug 2026 17:26:04 +0200 Subject: [PATCH 1/2] chore(release): begin 0.9.1 development --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ac39a10..f374f66 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.0 +0.9.1 From 99d6fc486beaaf802c91494692a5310a614aa361 Mon Sep 17 00:00:00 2001 From: Andrew Masiye Date: Fri, 7 Aug 2026 05:08:21 +0200 Subject: [PATCH 2/2] fix(physics): align 2d gravity defaults --- CHANGELOG.md | 8 ++++++++ tests/Core/PhysicsGravityTest.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00e92e0..4f0628a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to `lenga/engine` will be documented in this file. ## Unreleased +## 0.9.1 - 2026-08-07 + +### Fixed + +- Aligned the PHP-side 2D physics compatibility contract with Lenga's positive-Y-down coordinate system and restored the default gravity vector to `(0, 980, 0)`. + +## 0.9.0 - 2026-08-06 + ### Added - Added `Lenga\Engine\Core\Random`, a gameplay-oriented random helper with an explicit pseudo-random engine and pure-PHP fallback for Web export compatibility. diff --git a/tests/Core/PhysicsGravityTest.php b/tests/Core/PhysicsGravityTest.php index 7d04445..0c29e66 100644 --- a/tests/Core/PhysicsGravityTest.php +++ b/tests/Core/PhysicsGravityTest.php @@ -46,7 +46,7 @@ final class PhysicsGravityTest extends TestCase protected function setUp(): void { $GLOBALS['lenga_physics_gravity_test_state'] = [ - 'gravity2D' => ['x' => 0.0, 'y' => -9.8], + 'gravity2D' => ['x' => 0.0, 'y' => 980.0], 'gravity3D' => ['x' => 0.0, 'y' => -9.8, 'z' => 0.0], ]; }