The construction of a six-degree-of-freedom (6-DOF) model for the composite motion of the actual mechanical structure (defined as an all-true composite motion model) of unmanned aerial vehicles (UAVs) is a prerequisite for achieving stable control of rotorcraft UAVs. Therefore, this paper proposes a construction approach for a nonlinear 6-DOF model of quadrotor and dual-rotor coaxial UAVs based on all-true composite motion. Two types of attitude–altitude control systems for rotorcraft based on a self-optimizing intelligent proportional–integral–derivative (PID) control method are constructed. Three-dimensional geometric models of the two rotorcraft types, incorporating their physical characteristics, are built. The attitude responses to different pulse width modulation (PWM) inputs are tested, thereby verifying the accuracy of the all-true composite model and analyzing the stability of the two types of UAVs. Furthermore, two types of attitude–altitude control inner loop controllers are designed, and the intelligent PID control algorithm is used to optimize the control parameters. Further verification of the robustness of the optimized parameters is carried out, and the designed attitude controllers are verified via experiment using a turntable. The simulation and experimental results show that the proposed all-true composite motion model and controller design method can accurately simulate the dynamic characteristics of the two types of UAVs and maintain stable attitude control, thus providing a valuable reference for the accurate attitude control of rotorcraft UAVs based on all-true composite motion.