blob: 577e626649190a363d653dabab86a3d2aacdc48a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extends StaticBody
onready var collision_enabled = self.collision_layer
func lod_distance():
$"MeshInstance".visible = false
$"MeshInstance2".visible = true
self.collision_layer = 0
func lod_mid():
$"MeshInstance".visible = true
$"MeshInstance2".visible = false
self.collision_layer = 0
func lod_close():
$"MeshInstance".visible = true
$"MeshInstance2".visible = false
self.collision_layer = collision_enabled
|