THE RAY CASTING IN OUR GAME IS PHYSICS.
Now we solve the problem of control over the flow, its improvement and hit the target. To paint over an object or wash away a character, we need to find out if colors flow has got into it. Traditional methods of visualization are more suitable for PC, and color shooters are created for mobile devices. Our goal – high performance parameters to achieve maximum realism, but the possibilities of mobile devices significantly limit the speed and clarity, which complicates the task.The method of ray casting computationally complex, time-lapse, per-pixel dynamic calculation has allowed us to obtain the desired result.A beam defining a collision with objects around is accompanied by a curved flow along the entire length. For best performance, the amount of beam reference points is maximally limited.So the flow finds out whether it’s hit the target or not.
The ray casting in our game is physics. And throwing objects in the real world (teleportation) is also physics, or fantasy? How do you think? How far will science go, or already …))