Added a Jetpack Light

remotes/1705725415861086127/tmp_refs/heads/main
unfa 2021-09-21 23:07:31 +02:00
parent 23e7b0c8aa
commit 500473e517
2 changed files with 15 additions and 0 deletions

View File

@ -165,8 +165,10 @@ func _process(delta):
if jetpack_active:
$Jetpack/JetpackSound.stream_paused = false
$Jetpack/OmniLight3D.show()
else:
$Jetpack/JetpackSound.stream_paused = true
$Jetpack/OmniLight3D.hide()
if not input_active:
return

View File

@ -123,6 +123,8 @@ script = null
[node name="ClimbCheck" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.60905, -0.5)
visible = false
enabled = false
target_position = Vector3(0, -1.35, 0)
script = null
@ -136,6 +138,17 @@ mesh = SubResource( "CylinderMesh_8yana" )
surface_material_override/0 = null
script = null
[node name="OmniLight3D" type="OmniLight3D" parent="Jetpack"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.68079, 0)
visible = false
light_color = Color(0.890196, 0.917647, 1, 1)
light_energy = 4.0
light_size = 0.46
light_specular = 0.27
shadow_enabled = true
shadow_blur = 0.85
script = null
[node name="GPUParticles3D" type="CPUParticles3D" parent="Jetpack"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45039, 0.00259888)
emitting = false