First question: Is it possible to set an objects orientation to another objects orientation but plus some degrees? I believe the orientation is stored in radians and my basic attempt to add to it was just:
obj.orientation = cam.orientation.z + math.pi (pseudo code)
but that didn’t work. Is there something wrong with my syntax or am I missing some mathy type thing?
My second question is there a way to have an if statement that is activated when two things are true, but then after that initial activation only needs one value to continue working? An example would be for a cube to move the mouse would need to be over the cube and the left mouse button must be down, but after it is initiated, only the mouse must be held down to keep the cube moving. I’m kind of stumped on this one, but I need something like this for my game. Thanks guys!