engine
engine copied to clipboard
Optimize `drag` and `click` of `Pointer`
- [x]
Script
new callback about drag and drop - [x]
Pointer
new API - [x] Update pointer unit test
Summary by CodeRabbit
-
New Features
- Enhanced pointer interaction functionality with new handling for drag events (
onPointerBeginDrag
,onPointerEndDrag
, andonPointerDrop
). - Introduced a new property to capture raycasting results and restructured entity tracking for improved interaction.
- Enhanced pointer interaction functionality with new handling for drag events (
-
Bug Fixes
- Improved accuracy and reliability of pointer event handling.
-
Tests
- Added comprehensive tests for new pointer event features and raycasting hit results to ensure functionality and performance.
-
Refactor
- Streamlined internal pointer event logic and entity tracking for better maintainability and performance.