regression-test-project/MainScenes/Node3D.gd

79 lines
2.4 KiB
GDScript3
Raw Normal View History

2020-08-16 08:12:17 +02:00
extends Node3D
2020-08-05 11:03:11 +02:00
2020-11-06 16:57:49 +01:00
2020-08-05 11:03:11 +02:00
func _ready():
2020-12-13 19:26:04 +01:00
for i in range(5):
2020-08-16 08:12:17 +02:00
add_child(Node3D.new())
add_child(XRAnchor3D.new())
add_child(Camera3D.new())
add_child(XRCamera3D.new())
add_child(ClippedCamera3D.new())
add_child(XRController3D.new())
add_child(XROrigin3D.new())
2020-08-05 11:03:11 +02:00
add_child(AnimatedSprite3D.new())
add_child(Sprite3D.new())
2020-08-16 08:12:17 +02:00
add_child(CPUParticles3D.new())
add_child(CSGBox3D.new())
add_child(CSGCylinder3D.new())
add_child(CSGMesh3D.new())
add_child(CSGPolygon3D.new())
add_child(CSGSphere3D.new())
add_child(CSGTorus3D.new())
add_child(CSGCombiner3D.new())
add_child(ImmediateGeometry3D.new())
add_child(MeshInstance3D.new())
add_child(SoftBody3D.new())
add_child(MultiMeshInstance3D.new())
add_child(GPUParticles3D.new())
2020-08-05 11:03:11 +02:00
add_child(BakedLightmap.new())
2020-08-16 08:12:17 +02:00
add_child(DirectionalLight3D.new())
add_child(OmniLight3D.new())
add_child(SpotLight3D.new())
2020-08-05 11:03:11 +02:00
add_child(GIProbe.new())
add_child(ReflectionProbe.new())
2020-08-16 08:12:17 +02:00
add_child(Area3D.new())
add_child(KinematicBody3D.new())
add_child(PhysicalBone3D.new())
add_child(RigidBody3D.new())
add_child(VehicleBody3D.new())
add_child(StaticBody3D.new())
2020-08-05 11:03:11 +02:00
add_child(AudioStreamPlayer3D.new())
2020-08-16 08:12:17 +02:00
add_child(BoneAttachment3D.new())
add_child(CollisionPolygon3D.new())
add_child(CollisionShape3D.new())
add_child(ConeTwistJoint3D.new())
add_child(Generic6DOFJoint3D.new())
add_child(HingeJoint3D.new())
add_child(PinJoint3D.new())
add_child(SliderJoint3D.new())
2020-08-05 11:03:11 +02:00
add_child(GridMap.new())
2020-08-16 08:12:17 +02:00
add_child(Listener3D.new())
add_child(Path3D.new())
add_child(PathFollow3D.new())
2020-08-05 11:03:11 +02:00
add_child(Position3D.new())
2020-08-16 08:12:17 +02:00
add_child(ProximityGroup3D.new())
add_child(RayCast3D.new())
add_child(RemoteTransform3D.new())
add_child(Skeleton3D.new())
add_child(SpringArm3D.new())
add_child(VehicleWheel3D.new())
add_child(VisibilityNotifier3D.new())
add_child(VisibilityEnabler3D.new())
2020-11-27 09:54:47 +01:00
add_child(GPUParticlesAttractorBox.new())
add_child(GPUParticlesAttractorSphere.new())
add_child(GPUParticlesAttractorVectorField.new())
add_child(GPUParticlesCollisionBox.new())
2021-01-06 17:20:06 +01:00
# add_child(GPUParticlesCollisionHeightField.new())
2020-11-27 09:54:47 +01:00
add_child(GPUParticlesCollisionSphere.new())
add_child(GPUParticlesCollisionSDF.new())
2020-11-06 16:57:49 +01:00
func _process(delta: float) -> void:
2020-08-05 11:03:11 +02:00
for i in get_children():
if i.get_name() != "Camera":
2020-11-06 16:57:49 +01:00
i.set_scale(Vector3(delta + 1, delta + 1, delta + 1))
i.set_translation(Vector3(10 * randf(), 10 * randf(), 10 * randf()))