It's best not to try and track entity positions/rotations with variables like you might do in 2D -- just rotate it however much you need, then call EntityPitch/Yaw/Roll () to get its current rotation... same for X/Y/Z. You could of course read EntityX/Pitch/Whatever into a variable if you need to do some calculations on it afterwards.