mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
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
This commit is contained in:
parent
925419d801
commit
9d74a01f04
3 changed files with 19 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ function (Settings, PIXI) {
|
|||
fillColor = 0x0000FF; // Blue for kinematic bodies
|
||||
lineColor = 0x0000FF; // Blue stroke
|
||||
}
|
||||
lineWidth = 1;
|
||||
lineWidth = 0.25;
|
||||
}
|
||||
|
||||
this.drawShape(shape, transform, isSensor, fillColor, lineColor, lineWidth);
|
||||
|
|
@ -190,7 +190,7 @@ function (Settings, PIXI) {
|
|||
var size = 0.05; // Made much smaller (was 0.2)
|
||||
|
||||
// Draw a cross at the center of mass
|
||||
this.graphics.lineStyle(1, 0xFFFF00); // Yellow color for center of mass
|
||||
this.graphics.lineStyle(0.25, 0xFFFF00); // Yellow color for center of mass
|
||||
|
||||
// Horizontal line
|
||||
this.graphics.moveTo((centerX - size) * this.scale, centerY * this.scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue