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 = 0” condition that is extra to secure our air air plane from entering If block twice – once the rotation begin and simply after it concludes (as soon as the air air plane should carry on dancing). (more…)

Read More