Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@coconut-xr/xinteraction
Advanced tools
Web library for translating events from input devices (e.g. Mouse, XRController) into events on 3D Objects in a Three.js Scene.
events received from the input device
Special Input Device Events
events dispatched to 3D Objects from Input Device identified by inputDeviceElementId
The input device defines how it intersects with 3D objects in a scene. For instance, a mouse would use a raycaster, while a hand could use a sphere collider at the index finger. A input device can intersect multiple objects at once. The input device sorts the intersections. For each intersection events for the intersected object and its ancestors are created.
Stopping the propagation for an event causes terminates the event propagation to the ancestors and to following intersections.
If a input device is captured on one or multiple objects, the captured objects are used instead of the intersections.
A input device represents a unit with a positions and one or multiple input device elements. A input device element is a pressable or activateable element belonging to one input device with the same position as the input device. For instance, a input device can be a mouse and all buttons are input device elements. However, in case of a touch device, every individual pointer (finger) is a input device, since each pointer has its own position.
[x] fix onPointerUp after pointer leave and reenter (write test for it)
[x] manual down, up, cancel, and wheel for XSphereCollider
[x] bug: pointer events not on group
[x] XLinePointer (allow teleport like pointer)
[x] filter clipped events from Koestlich
[x] face normal info in intersection for sphere collision
[x] quaternion on intersection (world quaternion of input device)
[x] Koestlich/glyph bug - always intersecting
[x] test event (pointer) capture manually
[x] test on mobile device with multi touch
[x] write tests for ray intersections
[x] write tests for lines intersections
[x] write tests for collider intersections
[x] write tests for event capturing for sphere, ray, and lines intersection
[x] write tests that ensures that captured events are targetting the correct objects
[x] make sure that captured events appear on the correct target (the object that was captured not the intersected object)
[x] visualize cursor at first hit point (onIntersect -> update cursor ref)
[x] bug: intersect with rotated object
[x] event capture buggy when leaving the input device (moving out of window)
[x] double grab example
[x] pointer down on mobile not working
[x] onPressMissed, onReleaseMissed, and onSelectMissed on input device
[x] write testsfor onMissed...
[x] computeBounding... only when necassary
[x] write tests for camera ray intersection
[x] bug: move while holding button causes select when released
[x] fix code so that tests run
[x] spherecast on InstancedGlyphMesh from glpyh
[ ] write docs
[x] write test for above bug
FAQs
interactions for three.js
The npm package @coconut-xr/xinteraction receives a total of 0 weekly downloads. As such, @coconut-xr/xinteraction popularity was classified as not popular.
We found that @coconut-xr/xinteraction demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.