From a430789ab30fa831b69d306a853651fb052762f1 Mon Sep 17 00:00:00 2001 From: Peter Sharpe Date: Sun, 16 Jun 2024 14:42:31 -0400 Subject: [PATCH] Adds ability to modify the vehicle opacity in drawing --- aerosandbox/dynamics/point_mass/common_point_mass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aerosandbox/dynamics/point_mass/common_point_mass.py b/aerosandbox/dynamics/point_mass/common_point_mass.py index 54b780e4..e747385a 100644 --- a/aerosandbox/dynamics/point_mass/common_point_mass.py +++ b/aerosandbox/dynamics/point_mass/common_point_mass.py @@ -430,6 +430,7 @@ def draw(self, draw_wingtip_ribbon: bool = True, set_sky_background: bool = True, vehicle_color=None, + vehicle_opacity: float = 0.95, show: bool = True, ): if backend == "pyvista": @@ -585,7 +586,7 @@ def draw(self, if vehicle_color is None else vehicle_color ), - opacity=0.95, + opacity=vehicle_opacity, specular=0.5, specular_power=15, )