mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
92 lines
3.5 KiB
Plaintext
92 lines
3.5 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://tests/static_scene.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://tests/performance/test_perf_contacts.gd" type="Script" id=2]
|
|
[ext_resource path="res://utils/exception_cylinder.gd" type="Script" id=3]
|
|
[ext_resource path="res://tests/test_options.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://utils/camera_orbit.gd" type="Script" id=5]
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
|
|
[sub_resource type="CapsuleShape" id=2]
|
|
|
|
[sub_resource type="CylinderShape" id=3]
|
|
|
|
[sub_resource type="ConvexPolygonShape" id=4]
|
|
points = PoolVector3Array( -0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -1, 0 )
|
|
|
|
[sub_resource type="SphereShape" id=5]
|
|
|
|
[sub_resource type="PlaneShape" id=6]
|
|
|
|
[node name="Test" type="Spatial"]
|
|
script = ExtResource( 2 )
|
|
_enable_debug_collision = false
|
|
spawns = [ "SpawnTarget1" ]
|
|
spawn_count = 500
|
|
|
|
[node name="Options" parent="." instance=ExtResource( 4 )]
|
|
|
|
[node name="SpawnTarget1" type="Spatial" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7.06418, -1.24693 )
|
|
|
|
[node name="DynamicShapes" type="Spatial" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -26.3192, 1.2359, 38.0117 )
|
|
|
|
[node name="RigidBodyBox" type="RigidBody" parent="DynamicShapes"]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyBox"]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="RigidBodyCapsule" type="RigidBody" parent="DynamicShapes"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyCapsule"]
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="RigidBodyCylinder" type="RigidBody" parent="DynamicShapes"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyCylinder"]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="RigidBodyConvex" type="RigidBody" parent="DynamicShapes"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyConvex"]
|
|
shape = SubResource( 4 )
|
|
|
|
[node name="RigidBodySphere" type="RigidBody" parent="DynamicShapes"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodySphere"]
|
|
shape = SubResource( 5 )
|
|
|
|
[node name="StaticBodyWalls" type="StaticBody" parent="."]
|
|
|
|
[node name="CollisionShape1" type="CollisionShape" parent="StaticBodyWalls"]
|
|
transform = Transform( -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0, 1, -5, 0, 0 )
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="CollisionShape2" type="CollisionShape" parent="StaticBodyWalls"]
|
|
transform = Transform( -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0, 1, 5, 0, 0 )
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="CollisionShape3" type="CollisionShape" parent="StaticBodyWalls"]
|
|
transform = Transform( 2.6543e-14, 1.62921e-07, 1, 1, -1.62921e-07, 1.56125e-19, 1.62921e-07, 1, -1.62921e-07, 0, 0, -5 )
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="CollisionShape4" type="CollisionShape" parent="StaticBodyWalls"]
|
|
transform = Transform( 2.6543e-14, 1.62921e-07, -1, 1, -1.62921e-07, -1.56125e-19, -1.62921e-07, -1, -1.62921e-07, 0, 0, 5 )
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="StaticScene" parent="." instance=ExtResource( 1 )]
|
|
|
|
[node name="Camera" type="Camera" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 0.881757, 0.471705, 0, -0.471705, 0.881757, 0, 20.4125, 41.0426 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="OmniLight" type="OmniLight" parent="Camera"]
|
|
omni_range = 80.0
|