Skip to content

Commit

Permalink
Adds ability to modify the vehicle opacity in drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Jun 16, 2024
1 parent 3ef7a84 commit a430789
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aerosandbox/dynamics/point_mass/common_point_mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit a430789

Please sign in to comment.