cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Adding A Render Target to Camera Causes camera.screenPointToRay to Generate Wrong Ray

Open lealzhan opened this issue 2 years ago • 1 comments

https://discuss.cocos2d-x.org/t/shooting-raycast-through-canvas/58819 raycast-demo.zip image image image image

lealzhan avatar May 31 '23 06:05 lealzhan

The solution that I found, is to create a second camera, with nothing visibility and use that for raycast.

mvrlin avatar Apr 04 '24 08:04 mvrlin