Render bathymetric sonar surface
This commit is contained in:
1 parent
fdebbafeae
commit
b6f6b53a70
7 files changed
+305
-135
No files matched your search
@@ -16,7 +16,7 @@ func _init(materials: CockpitMaterialPalette) -> void:
|
||||
_materials = materials
|
||||
name = "SonarConsoleDetailing"
|
||||
_build_bezel()
|
||||
_build_graticule()
|
||||
_build_grid()
|
||||
_build_control_strip()
|
||||
_build_mounting_hardware()
|
||||
|
||||
@@ -100,7 +100,7 @@ func _build_control_strip() -> void:
|
||||
_control_count += 1
|
||||
|
||||
|
||||
func _build_graticule() -> void:
|
||||
func _build_grid() -> void:
|
||||
for x: float in [-0.145, -0.085, -0.025, 0.035, 0.095]:
|
||||
CockpitMeshFactory.add_box(
|
||||
"SonarGridVertical",
|
||||
@@ -117,24 +117,6 @@ func _build_graticule() -> void:
|
||||
Vector3(0.33, 0.0015, 0.002),
|
||||
_materials.sonar_grid
|
||||
)
|
||||
var trace_points: Array[Vector3] = [
|
||||
Vector3(-0.185, -0.035, 0.080),
|
||||
Vector3(-0.135, -0.020, 0.080),
|
||||
Vector3(-0.085, -0.055, 0.080),
|
||||
Vector3(-0.030, -0.005, 0.080),
|
||||
Vector3(0.025, -0.030, 0.080),
|
||||
Vector3(0.075, 0.030, 0.080),
|
||||
Vector3(0.125, 0.075, 0.080),
|
||||
]
|
||||
for point_index in trace_points.size() - 1:
|
||||
CockpitMeshFactory.add_cylinder_between(
|
||||
"SonarReferenceTrace",
|
||||
self,
|
||||
trace_points[point_index],
|
||||
trace_points[point_index + 1],
|
||||
0.0025,
|
||||
_materials.sonar_trace
|
||||
)
|
||||
|
||||
|
||||
func _build_mounting_hardware() -> void:
|
||||
|
||||
Reference in new issue
Block a user