Skip to content

Improve Scene Logic and Add Light Property Controls - #188

Open
brettfxio wants to merge 1 commit into
mainfrom
fix-and-enhance-scene-logic-8717262148381302904
Open

Improve Scene Logic and Add Light Property Controls#188
brettfxio wants to merge 1 commit into
mainfrom
fix-and-enhance-scene-logic-8717262148381302904

Conversation

@brettfxio

Copy link
Copy Markdown
Contributor

This PR introduces several improvements to the 3D engine:

  1. Player Jump Precision: Reduced the raycast offset in playerJump from 0.8 to 0.1, preventing the player from jumping while slightly above the ground.
  2. Robust Object Destruction: Enhanced destroyObject and _getMesh to correctly handle direct Babylon.js mesh instances and ensure they are properly removed from the internal object tracking map.
  3. Light Property Controls: Added a new Blockly block in the 'Scene' category that allows users to dynamically change the intensity and diffuse color of lights.
  4. Testing: Added a new test suite tests/light_properties.spec.js to verify the new block and its integration with the engine. Verified all tests pass.

PR created automatically by Jules for task 8717262148381302904 started by @brettfxio

feat: add light property control block

- Updated playerJump raycast length for better precision.
- Refactored destroyObject to correctly handle direct mesh objects and ensure removal from tracking map.
- Added set_light_property Blockly block to allow changing light intensity and color.
- Implemented setLightProperty in BabylonSceneManager.
- Added Playwright tests for light property modifications.

Co-authored-by: brettfxio <105930054+brettfxio@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant