Raycast doesnt work with moving scene (Follow)

I successfully created raycast, thanks to cpp-test examples.

But when I use Follow::createWithOffset on my hero then raycast only works on initial screen!
raycast draws but doesnt recognise collisions after initial screen

Is there any way to fix this problem?, Thanks

I think you need to post more content to receive help on this topic.

actually this is not specific to me raycast doesnt support moving scene, raycast works only on first screen!

I haven’t thought about this. If you post what you are doing we can test.

to reproduce problem,
1-Create raycast on location out of initial screen (if screen 800x600 place ray point 1 to Vec2(2900, 500) etc, )
2-Just add sprite and start camera follow on it
3-Move sprite (you can implement mouse pin joint to move) to x:2900 and check ray on that sprite whether collide or not