Kalablum Posted February 16, 2018 Share Posted February 16, 2018 Hi, could some one point me to right direction on how to do this kind of predicted trajectory? Link to comment Share on other sites More sharing options...
casey Posted February 17, 2018 Share Posted February 17, 2018 Do you mean calculate the trajectory, or show the guide lines? Calculation is fairly easy: the angle is just your standard law of reflection https://rechneronline.de/winkel/angle-of-incidence.php Check out the Geometry examples, especially line reflection https://phaser.io/examples/v2/geometry/line-reflection Link to comment Share on other sites More sharing options...
Kalablum Posted February 17, 2018 Author Share Posted February 17, 2018 7 hours ago, casey said: Do you mean calculate the trajectory, or show the guide lines? Calculation is fairly easy: the angle is just your standard law of reflection https://rechneronline.de/winkel/angle-of-incidence.php Check out the Geometry examples, especially line reflection https://phaser.io/examples/v2/geometry/line-reflection Wow, nice.... really something to look into it! Yes i want the guide lines, i will try it now, but i want to "reflect" on the boxes too, they are graphics, i hope this works! haha, tks a lot! casey 1 Link to comment Share on other sites More sharing options...
Kalablum Posted February 17, 2018 Author Share Posted February 17, 2018 I am really close! i made it work with lines but the line thickness get me wrong reflections... any thoughts? (it will hit at the yellow circle, not at the next where is showing) Link to comment Share on other sites More sharing options...
Recommended Posts