Rotation of 3D vector?
I have two vectors as Python lists and an angle. E.g.:
I have two vectors as Python lists and an angle. E.g.:
I’ve been working on this project about tanks (based on game Tank Trouble) and I’m wondering how I can move forward after I change angle of the sprite. Also if you know how I can make my bullets ricochet from the walls. I will really appreciate any help given. Thank you!
I’ve been trying to rotate a bunch of lines by 90 degrees (that together form a polyline). Each line contains two vertices, say (x1, y1) and (x2, y2). What I’m currently trying to do is rotate around the center point of the line, given center points |x1 – x2| and |y1 – y2|. For some reason (I’m not very mathematically savvy) I can’t get the lines to rotate correctly.