drag rework
This commit is contained in:
parent
a425f62267
commit
3d81c4af5f
18 changed files with 47 additions and 267 deletions
|
|
@ -1,15 +1,13 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://c7r4rhgj3ucao"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c7r4rhgj3ucao"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bjxjcx2qu16q5" path="res://scenes/flask.tscn" id="1_bb6uc"]
|
||||
[ext_resource type="Script" uid="uid://crjao0jjv5yqs" path="res://src/drag/draggable_camera.gd" id="1_hem3r"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfxlr4svnsdyx" path="res://scenes/ui.tscn" id="3_hflkp"]
|
||||
[ext_resource type="PackedScene" uid="uid://bx5wihgk668w1" path="res://assets/models/Chemistry.glb" id="5_q4uld"]
|
||||
[ext_resource type="PackedScene" uid="uid://bg8y4u2a4hx3p" path="res://assets/models/Drip.glb" id="6_gipex"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwtaqdacgcysa" path="res://assets/models/FlaskHolder.glb" id="7_064jp"]
|
||||
[ext_resource type="Environment" uid="uid://clgblxkcf822n" path="res://assets/Environment.tres" id="8_4kvtl"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_cbcd7"]
|
||||
size = Vector3(3.535, 1, 1)
|
||||
size = Vector3(4, 1, 2)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_hflkp"]
|
||||
|
||||
[node name="Lab" type="Node3D"]
|
||||
|
||||
|
|
@ -18,11 +16,11 @@ transform = Transform3D(2.4088485, 0, 0, 0, 1, 0, 0, 0, 2.8214846, 0, 0, 0)
|
|||
mesh = SubResource("BoxMesh_cbcd7")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.236948, 0.9448395, 1.8294222)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.86602545, 0.5, 0, -0.5, 0.8660253, -1.236948, 2.5364435, 3.1829531)
|
||||
script = ExtResource("1_hem3r")
|
||||
|
||||
[node name="Flask" parent="." instance=ExtResource("1_bb6uc")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.6518283, 1.0920403, 0.0039073825)
|
||||
[node name="DragRaycast" type="RayCast3D" parent="Camera3D"]
|
||||
target_position = Vector3(0, 0, -10)
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.8403207, 0.5420896, 0, -0.5420896, 0.8403207, 0, 1.9293891, 0)
|
||||
|
|
@ -33,14 +31,11 @@ layer = 100
|
|||
|
||||
[node name="UserInterface" parent="UI" instance=ExtResource("3_hflkp")]
|
||||
|
||||
[node name="Chemistry" parent="." instance=ExtResource("5_q4uld")]
|
||||
transform = Transform3D(-1.0927847e-08, 0, -0.25, 0, 0.25, 0, 0.25, 0, -1.0927847e-08, -3.030859, 0.55043614, -0.9607215)
|
||||
|
||||
[node name="Drip2" parent="." instance=ExtResource("6_gipex")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 1.3666252, 0.06701976, 0.014619827)
|
||||
|
||||
[node name="FlaskHolder2" parent="." instance=ExtResource("7_064jp")]
|
||||
transform = Transform3D(0.09002048, 0, -0.04354668, 0, 0.1, 0, 0.04354668, 0, 0.09002048, -3.3602376, 1.0968089, 0.2888375)
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = ExtResource("8_4kvtl")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("WorldBoundaryShape3D_hflkp")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue