checheche/Robo-Bus-A31-HMI/res3D/ego_vehicle.gd
2024-12-18 22:29:21 +08:00

14 lines
402 B
GDScript

extends Node3D
@onready var view_camera: Camera3D = %ViewCamera
@onready var side_display_sub_viewport: SubViewport = $SideDisplaySubViewport
@onready var main_sub_viewport: SubViewport = $MainSubViewport
func _init() -> void:
Global.EgoVehicle3D = self
func SideDisplayGetTexture():
return side_display_sub_viewport.get_texture()
func MainSubGetTexture():
return main_sub_viewport.get_texture()