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
Currently, the SimpleRaycaster.castRay() method casts a ray from the camera to the mouse or touch event point. There is no way to override the mouse/touch position and cast to a point defined by its (x,y) on-screen coordinates.
Suggested solution 💡
In the Core module, modify the SimpleRaycaster.castRay() method so that it accepts an optional parameter of type Vector2. If that parameter has a value, use it as the raycasting point; otherwise, use the mouse/touch position as in the current implementation.
Description 📝
Currently, the SimpleRaycaster.castRay() method casts a ray from the camera to the mouse or touch event point. There is no way to override the mouse/touch position and cast to a point defined by its (x,y) on-screen coordinates.
Suggested solution 💡
In the Core module, modify the SimpleRaycaster.castRay() method so that it accepts an optional parameter of type Vector2. If that parameter has a value, use it as the raycasting point; otherwise, use the mouse/touch position as in the current implementation.
Alternative ⛕
No response
Additional context ☝️
Discussed here: https://people.thatopen.com/c/ask-the-community/raycaster-problem
Validations ✅
The text was updated successfully, but these errors were encountered: