Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.0
0.9.1
2 changes: 1 addition & 1 deletion tests/Core/PhysicsGravityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Implement the gravity fix before releasing 0.9.1

This changes only a test fixture, not shipped package behavior, and even the fixture value is overwritten by Physics2D::setGravity() before the test reads it. Since Physics2D::getGravity() still returns the native bridge value and no src/ file changes in this commit, installing 0.9.1 cannot restore the advertised (0, 980) default for users relying on default 2D gravity; the actual runtime/source behavior needs to be changed and the untouched default asserted before publishing the release note.

Useful? React with 👍 / 👎.

'gravity3D' => ['x' => 0.0, 'y' => -9.8, 'z' => 0.0],
];
}
Expand Down
Loading