![]() If you write code to address all of this, I’d love to see it.Īnyway I thought I would do an example showing how you could use vectors to represent the direction a ball moves and vectors to represent the walls. Will the wall deform in a symmetrical and radial way? Or will it deform along inherent faults in an unknowable or otherwise random way? At the equator the planetary rotational influence is effectively zero though the distance traveled changes from east to west.Īlso, for further torment, consider the elasticity of the ’wall’. Of course, all this is influenced by distance from the pole of the launch point and the target area. For instance, if the projectile is flying true to the planets axis of rotation or poles, the combined rotational affect is greater flying south assuming a clockwise rotation in the projectile. Think billiards, where the ‘English’ imparted to the cue ball affects its travel after it hits the object ball.Īnd just for fun, you should also consider the rotational kinetic energy of your projectile relative to the initial frame of the ‘wall’. A winged missile will have a rotational bias once the wings fall off. You may want to consider the axial rotation of your ‘missile’, and the rotation/movement of the ‘wall’ if any.Ī non-winged missile will have some amount/degree of rotation for stability. I found this which I think adds to the answer. The answers from Quark seem correct as far as they go. Personally I would avoid angles altogether and use vectors for the direction of travel and also for the start and end of the barrier. ![]() Println("EW incident angle "+ a + " reflected angle " + r) Println("NS incident angle "+ a + " reflected angle " + r) Calculate the reflection angle in degrees against If you are only interested in reflections against vertical and horizontal boundaries then this works. sin(), cos() etc work correctly with the screen coordinate system. So east = 0°, south = 90°, west = 180° and north = 270° using these values mean the trig functions e.g. First of all your angles are wrong since on computers the positive y direction is down.
0 Comments
Leave a Reply. |