You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
I have a custom pointerLock with moving feature by pressing wasd, which will set the movement value for frontVector and sideVector
But recently I notice that only pointer event will trigger the raycaster detect objects, for example like filter in raycaster
If I only press button D and make the box ran into my sight except moving my pointer(mouse), the filter didn't update the item list that is already intersected(as you can see the Box is already in front of me, but the items array is still empty)
And once I move the mouse, the items will be updated
one of my thought is to add pointer event when user is moving, but honestly I'm not sure how to implement it, and I doubt this is a good idea...
by the way I'm trying to interact with the Box by pressing E, that's the reason why I've to know if user is already looking at(intersect with) the Box.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,

I have a custom pointerLock with moving feature by pressing wasd, which will set the movement value for
frontVector
andsideVector
But recently I notice that only pointer event will trigger the raycaster detect objects, for example like

filter
in raycasterIf I only press button
D
and make the box ran into my sight except moving my pointer(mouse), the filter didn't update the item list that is already intersected(as you can see the Box is already in front of me, but the items array is still empty)And once I move the mouse, the
items
will be updatedone of my thought is to add pointer event when user is moving, but honestly I'm not sure how to implement it, and I doubt this is a good idea...
by the way I'm trying to interact with the Box by pressing E, that's the reason why I've to know if user is already looking at(intersect with) the Box.
Beta Was this translation helpful? Give feedback.
All reactions