You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

424 lines
16 KiB

[gd_scene load_steps=35 format=2]
[ext_resource path="res://Scripts/ThirdPersonCamera.cs" type="Script" id=1]
[ext_resource path="res://Main.cs" type="Script" id=3]
[ext_resource path="res://Scripts/Vehicle.cs" type="Script" id=4]
[ext_resource path="res://Materials/Ground/Ground.tres" type="Material" id=5]
[ext_resource path="res://Objects/Interaction/Bat.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scripts/Input/VRController.cs" type="Script" id=7]
[ext_resource path="res://Objects/Beer.tscn" type="PackedScene" id=8]
[ext_resource path="res://Materials/syferfontein_18d_clear_4k.hdr" type="Texture" id=9]
[ext_resource path="res://Scripts/Utility/Debug3D.cs" type="Script" id=10]
[ext_resource path="res://Objects/Hands/vr_glove_left_model_slim.tscn" type="PackedScene" id=12]
[ext_resource path="res://Objects/Hands/vr_glove_right_model_slim.tscn" type="PackedScene" id=13]
[ext_resource path="res://Scripts/Interaction/PhysicalHand.cs" type="Script" id=14]
[ext_resource path="res://Models/C10/source/C10.tscn" type="PackedScene" id=15]
[ext_resource path="res://Models/C10/Tire.tscn" type="PackedScene" id=16]
[ext_resource path="res://PhysicalMaterials/Hand.tres" type="PhysicsMaterial" id=17]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 9 )
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
ambient_light_color = Color( 0.501961, 0.501961, 0.501961, 1 )
ambient_light_energy = 1.77
fog_depth_begin = 46.0
fog_depth_end = 64.0
fog_depth_curve = 4.59479
tonemap_mode = 2
tonemap_white = 4.1
ssao_quality = 2
ssao_edge_sharpness = 1.33
dof_blur_far_distance = 100.0
dof_blur_far_transition = 100.0
dof_blur_far_amount = 0.11
dof_blur_far_quality = 2
dof_blur_near_distance = 13.52
dof_blur_near_transition = 20.0
dof_blur_near_quality = 2
adjustment_contrast = 1.18
adjustment_saturation = 0.4
[sub_resource type="BoxShape" id=3]
extents = Vector3( 1.29319, 1.34996, 3.46576 )
[sub_resource type="SphereShape" id=4]
margin = 0.02
radius = 0.0274051
[sub_resource type="SphereMesh" id=5]
[sub_resource type="SpatialMaterial" id=6]
flags_unshaded = true
flags_no_depth_test = true
albedo_color = Color( 0.65098, 0.552941, 1, 0.815686 )
[sub_resource type="SphereShape" id=7]
radius = 0.0727296
[sub_resource type="BoxShape" id=8]
extents = Vector3( 0.0226465, 0.0457049, 0.044355 )
[sub_resource type="SphereMesh" id=9]
radius = 0.1
height = 0.2
[sub_resource type="SpatialMaterial" id=10]
albedo_color = Color( 0.133333, 0.886275, 0.219608, 1 )
[sub_resource type="CubeMesh" id=11]
size = Vector3( 1, 0.74, 1 )
[sub_resource type="SpatialMaterial" id=12]
albedo_color = Color( 0.745098, 0.596078, 0.427451, 1 )
[sub_resource type="BoxShape" id=13]
extents = Vector3( 0.996434, 0.713272, 1 )
[sub_resource type="CubeMesh" id=14]
[sub_resource type="SpatialMaterial" id=15]
albedo_color = Color( 0.458824, 0.890196, 0.352941, 1 )
[sub_resource type="BoxShape" id=16]
[sub_resource type="BoxShape" id=17]
extents = Vector3( 3.00748, 0.742274, 1 )
[sub_resource type="BoxShape" id=18]
extents = Vector3( 212.548, 0.519503, 201.414 )
[sub_resource type="PlaneMesh" id=19]
size = Vector2( 400, 400 )
subdivide_width = 1
subdivide_depth = 1
[node name="Main" type="Spatial"]
pause_mode = 2
script = ExtResource( 3 )
SpectatorViewport = NodePath("SPEC/SPEC_VIEW")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="Sun" type="DirectionalLight" parent="WorldEnvironment"]
transform = Transform( -0.762073, -0.443772, -0.471499, 0.215733, -0.860609, 0.461315, -0.610495, 0.249838, 0.751583, 0, 9.55215, 0 )
light_energy = 2.54
light_indirect_energy = 1.49
shadow_enabled = true
shadow_color = Color( 0.56, 0.56, 0.56, 1 )
directional_shadow_split_1 = 0.087
directional_shadow_split_2 = 0.196
directional_shadow_split_3 = 0.591
directional_shadow_blend_splits = true
directional_shadow_normal_bias = 1.29
directional_shadow_bias_split_scale = 0.15
[node name="VehicleBody" type="VehicleBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5.64338, 1.03545, -8.12644 )
mass = 173.469
script = ExtResource( 4 )
MaxEngineForce = 100.0
MaxSteerAngleDegrees = 24.0
SteeringResposiveness = 1.0
[node name="CollisionShape" type="CollisionShape" parent="VehicleBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.70919, -0.121683 )
shape = SubResource( 3 )
[node name="C10" parent="VehicleBody" instance=ExtResource( 15 )]
transform = Transform( 0.6, -6.9849e-11, 7.15254e-08, 6.9849e-11, 0.6, 6.9849e-11, -7.15254e-08, -6.9849e-11, 0.6, -1.16415e-10, 1.74296, -2.03727e-10 )
[node name="BR" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, -2.91038e-10, 8.9407e-08, 2.91038e-10, 1, -5.82077e-11, -8.9407e-08, 5.82077e-11, 1, -1.3, 0.5, -1.78436 )
use_as_traction = true
wheel_roll_influence = 0.0
wheel_radius = 0.8
wheel_rest_length = 0.35
wheel_friction_slip = 12.0
suspension_travel = 0.5
suspension_stiffness = 15.0
suspension_max_force = 3000.0
damping_compression = 0.5
__meta__ = {
"_editor_description_": ""
}
[node name="Tire" parent="VehicleBody/BR" instance=ExtResource( 16 )]
transform = Transform( 0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, 0 )
[node name="BL" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, -2.91038e-10, 8.9407e-08, 2.91038e-10, 1, -5.82077e-11, -8.9407e-08, 5.82077e-11, 1, 1.3, 0.5, -1.78436 )
use_as_traction = true
wheel_roll_influence = 0.0
wheel_radius = 0.8
wheel_rest_length = 0.35
wheel_friction_slip = 12.0
suspension_travel = 0.5
suspension_stiffness = 12.0
suspension_max_force = 2000.0
damping_compression = 0.5
__meta__ = {
"_editor_description_": ""
}
[node name="Tire" parent="VehicleBody/BL" instance=ExtResource( 16 )]
transform = Transform( -0.7, 2.7259e-07, 0, -2.7259e-07, -0.7, 0, 0, 0, 0.7, 0, 0, 0 )
[node name="FL" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, -2.2942e-10, 4.00619e-20, 2.2942e-10, 1, -1.16415e-10, -1.3354e-20, 1.16415e-10, 1, 1.3, 0.5, 2.4 )
use_as_traction = true
use_as_steering = true
wheel_roll_influence = 0.0
wheel_radius = 0.8
wheel_rest_length = 0.35
wheel_friction_slip = 12.0
suspension_travel = 0.5
suspension_stiffness = 12.0
suspension_max_force = 2000.0
damping_compression = 0.5
__meta__ = {
"_editor_description_": ""
}
[node name="Tire" parent="VehicleBody/FL" instance=ExtResource( 16 )]
transform = Transform( -0.7, 2.7259e-07, 6.25849e-08, -2.7259e-07, -0.7, 4.07451e-11, 6.25849e-08, 4.07208e-11, 0.7, 0, 0, 0 )
[node name="FR" type="VehicleWheel" parent="VehicleBody"]
transform = Transform( 1, -2.2942e-10, 4.00619e-20, 2.2942e-10, 1, -1.16415e-10, -1.3354e-20, 1.16415e-10, 1, -1.3, 0.5, 2.4 )
use_as_traction = true
use_as_steering = true
wheel_roll_influence = 0.0
wheel_radius = 0.8
wheel_rest_length = 0.35
wheel_friction_slip = 10.0
suspension_travel = 0.5
suspension_stiffness = 12.0
suspension_max_force = 2000.0
damping_compression = 0.5
__meta__ = {
"_editor_description_": ""
}
[node name="Tire" parent="VehicleBody/FR" instance=ExtResource( 16 )]
transform = Transform( 0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, 0 )
[node name="VRPlayerOrigin" type="Spatial" parent="VehicleBody"]
transform = Transform( 1, -1.16988e-09, 0, -3.16902e-12, 1, 0, 0, 5.82077e-10, 1, 2.56114e-09, 1.22837, -1.64414 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Control" type="Control" parent="CanvasLayer"]
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
CameraNode = NodePath("../../SPEC/SPEC_VIEW/SPEC_CAMERA")
DefaultColor = Color( 0.976471, 0.886275, 0.14902, 1 )
[node name="VR_VIEW" type="Viewport" parent="."]
arvr = true
size = Vector2( 100, 100 )
render_target_update_mode = 3
shadow_atlas_size = 4096
shadow_atlas_quad_0 = 1
[node name="VR_Origin" type="ARVROrigin" parent="VR_VIEW"]
transform = Transform( 1, -3.13221e-10, 4.36557e-11, 3.83551e-11, 1, 0, 0, 1.74623e-10, 1, 0.397993, -5.82057e-08, -9.08904 )
[node name="LeftController" type="ARVRController" parent="VR_VIEW/VR_Origin"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
script = ExtResource( 7 )
[node name="PhysicalArea" type="Area" parent="VR_VIEW/VR_Origin/LeftController"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
collision_layer = 4
[node name="Shape" type="CollisionShape" parent="VR_VIEW/VR_Origin/LeftController/PhysicalArea"]
shape = SubResource( 4 )
[node name="MeshInstance" type="MeshInstance" parent="VR_VIEW/VR_Origin/LeftController/PhysicalArea"]
transform = Transform( 0.025, -1.90582e-22, 0, 0, 0.025, 0, 0, 0, 0.025, 0, 0, 0 )
mesh = SubResource( 5 )
material/0 = SubResource( 6 )
[node name="RightController" type="ARVRController" parent="VR_VIEW/VR_Origin"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
controller_id = 2
script = ExtResource( 7 )
[node name="PhysicalArea" type="Area" parent="VR_VIEW/VR_Origin/RightController"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
collision_layer = 4
[node name="Shape" type="CollisionShape" parent="VR_VIEW/VR_Origin/RightController/PhysicalArea"]
shape = SubResource( 4 )
[node name="MeshInstance" type="MeshInstance" parent="VR_VIEW/VR_Origin/RightController/PhysicalArea"]
transform = Transform( 0.025, -1.90582e-22, 0, 0, 0.025, 0, 0, 0, 0.025, 0, 0, 0 )
mesh = SubResource( 5 )
material/0 = SubResource( 6 )
[node name="LeftHand_Physical" type="RigidBody" parent="VR_VIEW/VR_Origin"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0.131933, -5.05906e-12, 0 )
collision_layer = 4
mode = 3
mass = 0.204082
physics_material_override = ExtResource( 17 )
gravity_scale = 0.0
script = ExtResource( 14 )
VRControllerNode = NodePath("../LeftController")
[node name="GripArea" type="Area" parent="VR_VIEW/VR_Origin/LeftHand_Physical"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
collision_layer = 2
collision_mask = 2
[node name="GripShape" type="CollisionShape" parent="VR_VIEW/VR_Origin/LeftHand_Physical/GripArea"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, -0.0468034, 1.79412e-12, 0.0792904 )
shape = SubResource( 7 )
[node name="CollisionShape" type="CollisionShape" parent="VR_VIEW/VR_Origin/LeftHand_Physical"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
shape = SubResource( 8 )
[node name="LeftHand_Model" parent="VR_VIEW/VR_Origin/LeftHand_Physical" instance=ExtResource( 12 )]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
script = null
[node name="RightHand_Physical" type="RigidBody" parent="VR_VIEW/VR_Origin"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, -0.147413, 5.66303e-12, 0 )
collision_layer = 4
mass = 0.204082
physics_material_override = ExtResource( 17 )
gravity_scale = 0.0
script = ExtResource( 14 )
VRControllerNode = NodePath("../RightController")
[node name="GripArea" type="Area" parent="VR_VIEW/VR_Origin/RightHand_Physical"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
collision_layer = 2
collision_mask = 2
[node name="GripShape" type="CollisionShape" parent="VR_VIEW/VR_Origin/RightHand_Physical/GripArea"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0.0526697, -2.02149e-12, 0.0792904 )
shape = SubResource( 7 )
[node name="CollisionShape" type="CollisionShape" parent="VR_VIEW/VR_Origin/RightHand_Physical"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
shape = SubResource( 8 )
[node name="RightHand_Model" parent="VR_VIEW/VR_Origin/RightHand_Physical" instance=ExtResource( 13 )]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
script = null
[node name="Head_Camera" type="ARVRCamera" parent="VR_VIEW/VR_Origin"]
transform = Transform( 1, 2.74866e-10, -4.36557e-11, 0, 1, -1.74623e-10, 0, 0, 1, 0, 1.37866, 0 )
cull_mask = 1048571
[node name="Head_Model" type="MeshInstance" parent="VR_VIEW/VR_Origin/Head_Camera"]
layers = 4
mesh = SubResource( 9 )
material/0 = SubResource( 10 )
[node name="CAM_ANCHOR" type="Spatial" parent="VR_VIEW/VR_Origin"]
transform = Transform( 1, -7.62329e-21, 0, 0, 1, 0, 0, 0, 1, -1.26882, 1.01569, 0.966318 )
[node name="SPEC" type="ViewportContainer" parent="."]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SPEC_VIEW" type="Viewport" parent="SPEC"]
size = Vector2( 320, 200 )
handle_input_locally = false
render_target_update_mode = 3
shadow_atlas_size = 4096
shadow_atlas_quad_0 = 1
[node name="SPEC_CAMERA" type="Camera" parent="SPEC/SPEC_VIEW"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0926893, 20.1057, 13.3724 )
cull_mask = 1048573
current = true
size = 50.0
far = 500.0
script = ExtResource( 1 )
TargetNode = NodePath("../../../VR_VIEW/VR_Origin")
VerticalOffset = 1.0
DesiredOrbitDistance = 2.0
MinPitch = -30.0
MaxVelocityDistance = 5.0
[node name="World" type="Spatial" parent="."]
[node name="Interactables" type="Spatial" parent="World"]
transform = Transform( 0.99745, 0, 0.0713755, 0, 1, 0, -0.0713755, 0, 0.99745, 0.094462, 1.1257, -8.43349 )
[node name="Table" type="KinematicBody" parent="World/Interactables"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.175332, -0.576552, 0.278655 )
[node name="MeshInstance" type="MeshInstance" parent="World/Interactables/Table"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.177357, 0 )
mesh = SubResource( 11 )
material/0 = SubResource( 12 )
[node name="CollisionShape" type="CollisionShape" parent="World/Interactables/Table"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.166991, 0 )
shape = SubResource( 13 )
[node name="RigidBody" parent="World/Interactables" instance=ExtResource( 8 )]
transform = Transform( 0.997449, 0, -0.0713753, 0, 1, 0, 0.0713753, 0, 0.997449, -0.953221, -0.269157, 0.935382 )
[node name="RigidBody2" parent="World/Interactables" instance=ExtResource( 8 )]
transform = Transform( 0.997449, 0, -0.0713754, 0, 1, 0, 0.0713754, 0, 0.997449, 0.379775, -0.138206, 0.0757728 )
[node name="RigidBody3" parent="World/Interactables" instance=ExtResource( 8 )]
transform = Transform( 0.997449, 0, -0.0713754, 0, 1, 0, 0.0713754, 0, 0.997449, 0.223769, -0.138206, 0.0646095 )
[node name="RigidBody4" parent="World/Interactables" instance=ExtResource( 8 )]
transform = Transform( 0.997449, 0, -0.0713754, 0, 1, 0, 0.0713754, 0, 0.997449, 0.0499948, -0.138206, 0.0521746 )
[node name="Bat" parent="World/Interactables" instance=ExtResource( 6 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.391188, -0.169909, -0.178568 )
[node name="LargeBox" type="RigidBody" parent="World/Interactables"]
transform = Transform( 0.990918, 0, -0.13447, 0, 1, 0, 0.13447, 0, 0.990918, -1.23384, -0.311371, 1.02963 )
collision_layer = 2
collision_mask = 3
[node name="MeshInstance" type="MeshInstance" parent="World/Interactables/LargeBox"]
transform = Transform( 1, 0, -9.31323e-10, 0, 0.02, 0, 0, 0, 0.05, 0, 0, 0 )
mesh = SubResource( 14 )
material/0 = SubResource( 15 )
[node name="CollisionShape" type="CollisionShape" parent="World/Interactables/LargeBox"]
transform = Transform( 1, 0, -1.39698e-09, 0, 0.02, 0, 0, 0, 0.05, 0, 0, 0 )
shape = SubResource( 16 )
[node name="DESK" type="KinematicBody" parent="World"]
transform = Transform( 0.99745, 0, 0.0713755, 0, 1, 0, -0.0713755, 0, 0.99745, -0.552783, 0.565418, -7.05774 )
[node name="MeshInstance" type="MeshInstance" parent="World/DESK"]
transform = Transform( 3, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.177357, 0 )
mesh = SubResource( 11 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="World/DESK"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.179408, 0 )
shape = SubResource( 17 )
[node name="Floor" type="StaticBody" parent="World"]
[node name="CollisionShape" type="CollisionShape" parent="World/Floor"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.513713, 0 )
shape = SubResource( 18 )
[node name="MeshInstance" type="MeshInstance" parent="World/Floor"]
mesh = SubResource( 19 )
material/0 = ExtResource( 5 )