Commit graph

6 commits

Author SHA1 Message Date
Karl Pannek
9d74a01f04 Enable pointer lock filters and disable them when debug draw is on
- Enable ENABLE_POINTER_LOCK_FILTER in Settings.js
- Add debug mode check in onPointerLockChange to disable filters when debug is on
- Add onToggleDebugMode override to remove active filters when debug is enabled
- Reduce debug draw line thickness to 0.25 for cleaner visualization
2025-07-19 00:01:48 +02:00
Karl Pannek
925419d801 Refactor debug draw to use PIXI layer system only
- Removed separate canvas overlay system
- Integrated PlanckDebugDraw with PIXI.Graphics
- Debug draw now renders directly to debugLayer.graphics
- Simplified Engine.js by removing camera position methods
- All physics debug visualization now uses the layer system
- Cleaner, more integrated architecture
- Debug checkbox controls single PIXI layer visibility
2025-07-18 23:08:32 +02:00
Karl Pannek
e784b27848 Fix debug draw overlay visibility - simple canvas display toggle
- Fixed debug draw overlay not disappearing when checkbox unchecked
- Added canvas.style.display control in onToggleDebugMode
- Kept existing canvas-based PlanckDebugDraw system
- Both canvas overlay and PIXI debug layer are now properly toggled
- Debug physics bodies now properly show/hide with checkbox
2025-07-18 23:05:55 +02:00
Karl Pannek
49f4591d3a Fix debug draw and physics positioning issues
- Fix critical bug in PlanckDebugDraw.js where circles were drawn at body center instead of local positions
- Add DEBUG_DRAW_SENSORS support with orange styling and no outlines
- Fix Chuck's sprite positioning to align with physics body center (pivot adjustments)
- Correct fixture Y coordinates so Chuck stands upright instead of on his head
- Position foot sensor correctly below legs for proper ground detection
- Remove cyan crosses and make yellow center-of-mass crosses smaller
- Make debug lines thinner for cleaner visualization
2025-07-16 23:40:40 +02:00
Karl Pannek
d584065757 Fix Planck debug draw: add camera sync and hide sensors like Box2D 2025-07-16 21:15:37 +02:00
Karl Pannek
dc779def9c Complete Box2D to Planck.js migration
- Replace Box2D.js with Planck.js physics engine
- Update all require paths from 'Lib/Vendor/Box2D' to 'Lib/Vendor/Planck'
- Convert Box2D contact listeners to Planck.js event system
- Fix all method name capitalization (Get* -> get*, Set* -> set*)
- Update collision detection system for Planck.js compatibility
- Server now starts successfully and basic physics working
- Character can land on platforms - core physics functional

Major milestone: Game now running on modern, maintained physics engine
2025-07-16 15:01:59 +02:00