Add GPUParticles

This commit is contained in:
Rafał Mikrut 2020-11-27 09:54:47 +01:00
parent 28a6b0b9f8
commit b400871e6d
2 changed files with 13 additions and 2 deletions

View File

@ -62,6 +62,16 @@ func _ready():
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:
for i in get_children():
if i.get_name() != "Camera":

View File

@ -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