Implementation of Drone Physics: A Case Study of Yue’s Ultimate Drone
J.Gong
2026-03-29
3.22min
Implementation of Drone Physics: A Case Study of Yue’s Ultimate Drone
This section examines the flight dynamics and control implementation found in the Yue’s Ultimate Drone physics model. The system architecture separates pilot input normalization from the underlying Proportional-Derivative (PD) control loops.

1. Control Input and Joystick Shaping
The flight controller distinguishes between unipolar throttle inputs and bipolar command sticks (Roll, Pitch, and Yaw):
- Throttle (): Mapped to a normalized range of .
- Attitude Commands (): Mapped to a range of .
To refine the pilot’s control over the aircraft, the system utilizes a non-linear control curve for joystick calculation. As Lovesay (2003) observes:
A good quality force tracking controller has a linear output, with joystick force directly proportional to sight velocity, but many systems shape the joystick voltage output, to achieve fine control and greater tracking accuracy as the joystick output approaches zero, whilst retaining the same maximum output capability.
In this implementation, “shaping” is achieved by combining proportional () and exponential () components to calculate the target angular rate () from the raw angular rate ():
1.1 Axis Transformations
The specific rates for the rotational axes are calculated as follows:
- Yaw Rate ():
- Roll Rate ():
- Pitch Rate ():
The raw gamepad throttle is normalized to a linear thrust scalar:
2. Flight Modes and Orientation Logic
Since the Unity engine utilizes the FixedUpdate method for physics calculations, the drone’s target orientation is updated discretely at every physics timestep ().
2.1 Acro Mode
In Acro mode, the joystick inputs command the angular rate of change. The drone’s target orientation is an accumulation of these rates over time. The orientation is updated by integrating the processed angular rates ():
2.2 Self-Leveling Mode
In Self-Leveling mode, intended to prevent crashing and ease navigation, the pitch and roll sticks command a specific angle rather than a rate. Given a predefined maximum bank angle for pitch () and roll (), the target values are calculated as:
The yaw axis typically remains in rate-integration mode to allow for continuous 360-degree rotation:
3. Physics Calculation and PD Torque
The simulation applies two primary vectors to the drone’s Rigidbody: appliedForce (Thrust) and appliedTorque (Attitude Control).
3.1 Thrust
The total thrust force is applied along the vehicle’s local “up” vector (). The magnitude is governed by the throttle and the maximum thrust constant :
3.2 PD Control
Proportional integral derivative (PID) is a type of controller that is most commonly used and applied in mechanical systems (Idrissi et al., 2022).
The controller consists of three main components:
-
Proportional (): Acts like a virtual spring that pulls the system toward the desired position; the control action increases as the error gets larger.
-
Integral (): Accumulates the error over time to eliminate steady-state error, ensuring the drone reaches the exact target even in the presence of disturbances like gravity.
-
Derivative (): Acts as a virtual damper to reduce oscillations and prevent the system from overshooting its target.

For basic flight stabilization where the full dynamic behavior of the plant is not realized, a simple PD action can provide satisfactory performance
3.3 Attitude Control
The error between the target orientation and the current body orientation is defined as:
Using Unity’s ToAngleAxis method, this relative rotation is converted into an angle and an axis . The error vector is then:
The controller applies a PD loop (Proportional-Derivative) to generate corrective torque.
Finally, the world-space torque is transformed into the body frame () for the physics simulation:
Yuetility-Studios. (2022). Yue Ultimate FPV Drone Physics (Version 1.0) [Computer software]. Unity Asset Store. https://assetstore.unity.com/packages/tools/physics/yue-ultimate-fpv-drone-physics-231651
Lovesay, E. J. (Ed.). (2003). Contemporary ergonomics 1993. CRC Press.
Idrissi, M., Salami, M., & Annaz, F. (2022). A Review of Quadrotor Unmanned Aerial Vehicles: Applications, Architectural Design and Control Algorithms. Journal of Intelligent & Robotic Systems, 104(2), 22. https://doi.org/10.1007/s10846-021-01527-7
Lynch, K. M., & Park, F. C. (2017). Modern Robotics: Mechanics, Planning, and Control (1st ed.). Cambridge University Press. https://doi.org/10.1017/9781316661239