Trackball turret with LOS aiming - Test preview
Elementary / Math / Ratios and Proportions
Automatic control of the physics-based trackball turret with LOS aiming. Angular version of the Cosine rule was used to align one of the axis of the turret with the target vector. Target vector calculated using the Line-of-Sight method. The turret returns to the starting orientation when there is no target in its range. The turret fires projectile two times a second. Continuous collision detection between projectiles and target. The two displays at the bottom show the number of hits and precision. The number of hits and the precision of the turret : 0/0% Quaternion form of RK2/RK4 integration used for modify orientation, angular velocity and angular acceleration of the trackball turret.