def get_motion_vector(self):
if any(self.move):<EOL><INDENT>x, y = self.actor._rot<EOL>strafe = math.degrees(math.atan2(*self.move))<EOL>y_angle = math.radians(y)<EOL>x_angle = math.radians(x + strafe)<EOL>dy = <NUM_LIT:0.0><EOL>dx = math.cos(x_angle)<EOL>dz = math.sin(x_angle)<EOL><DEDENT>else:<EOL><INDENT>dy = <NUM_LIT:0.0><EOL>dx = <NUM_LIT:0.0><EOL>dz = <NUM_LIT:0.0><EOL><DEDENT>return (dx, dy, dz)<EOL>
Returns the movement vector according to held buttons and the rotation.

:return: 3-Tuple of ``(dx,dy,dz)``
:rtype: tuple