Very last thing that left would be to adjust bounce behaviour. We have to set isRotating flag and provide an airplane rotation that is first (otherwise Mod(PRotation,180)0 will not be real). Swap final 2 lines of the code as follow:

Very last thing that left would be to adjust bounce behaviour. We have to set isRotating flag and provide an airplane rotation that is first (otherwise Mod(PRotation,180)0 will not be real). Swap final 2 lines of the code as follow: The “&& PDirection =...