From b400871e6da91c8466b3d767ca1aa62da84ae04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Fri, 27 Nov 2020 09:54:47 +0100 Subject: [PATCH] Add GPUParticles --- MainScenes/Spatial.gd | 10 ++++++++++ MainScenes/Spatial.tscn | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/MainScenes/Spatial.gd b/MainScenes/Spatial.gd index a901af5..133f80f 100644 --- a/MainScenes/Spatial.gd +++ b/MainScenes/Spatial.gd @@ -60,6 +60,16 @@ func _ready(): add_child(VehicleWheel3D.new()) add_child(VisibilityNotifier3D.new()) add_child(VisibilityEnabler3D.new()) + + + add_child(GPUParticlesAttractorBox.new()) + add_child(GPUParticlesAttractorSphere.new()) + add_child(GPUParticlesAttractorVectorField.new()) + + add_child(GPUParticlesCollisionBox.new()) + add_child(GPUParticlesCollisionHeightField.new()) + add_child(GPUParticlesCollisionSphere.new()) + add_child(GPUParticlesCollisionSDF.new()) func _process(delta: float) -> void: diff --git a/MainScenes/Spatial.tscn b/MainScenes/Spatial.tscn index f08b360..f99c4c2 100644 --- a/MainScenes/Spatial.tscn +++ b/MainScenes/Spatial.tscn @@ -2,8 +2,9 @@ [ext_resource path="res://MainScenes/Spatial.gd" type="Script" id=1] -[node name="Spatial" type="Spatial"] +[node name="Spatial" type="Node3D"] script = ExtResource( 1 ) -[node name="Camera" type="Camera" parent="."] +[node name="Camera" type="Camera3D" parent="."] transform = Transform( 1, 0, 0, 0, 0.690617, 0.72322, 0, -0.72322, 0.690617, 0, 3.77374, 5.42622 ) +script = null