Need assistance with a game feature and it's script for a Unity 2D mobile game
- 状态 关闭的
- 预算 $30 - $250 USD
- 总竞标 14
There is a Triangle in the game which is supposed to behave like a prism and light rays pass through it in a refracted manner. There are also mirrors in the level which perform reflection.
We are using Linerenderer to render the ray.
We have written our own script for refraction of light through the triangle, using Snell's Law of refraction.
Problems that we are facing in Refraction Class script
1. Number of Refraction/Reflection of Linerenderer is not consistent.
2. Reflection and refraction do not occur simultaneously and consistently.
3. The uneven flickering of reflected and refracted rays.
Please revert back if you need any more information.
P.S : will attach project on request.
- The New York Times
- Wall Street Journal
- Times Online