Closed GloeStoe closed 4 years ago
Information for bouncing off: https://stackoverflow.com/questions/55793641/2d-perfect-projectile-reflection-with-rotation https://math.stackexchange.com/questions/1737382/projectile-motion-solving-for-x-and-y-when-reflected-by-a-given-point-at-a-give
Physik unterricht "Einschlagswinkel" == "Auschlagswinkel" Aber speed muss verloren gehen bzw. je nach item untershciedlich viel brauchen eine variable die sagt wie viel speed verloren geht und je nach item ist die untershciedlich groß.
Eingeführt. Die Methode wallHitSpecialReaction() ersetzt hitWall().
The update method should check if a arrow hit a wall. If so, the abstract method "hitWall()" should get triggered. Add this method. The Classes that extend (Projectile) implement their own reactions to the hitting of the wall.