Interaction basics
This commit is contained in:
parent
3d81c4af5f
commit
345acc8079
7 changed files with 79 additions and 14 deletions
22
scenes/camera_3d.tscn
Normal file
22
scenes/camera_3d.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://c2vxq6kqhris0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://crjao0jjv5yqs" path="res://src/drag/draggable_camera.gd" id="1_v4apc"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_hflkp"]
|
||||
radius = 0.1
|
||||
height = 10.5
|
||||
|
||||
[node name="Camera3D" type="Camera3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.86602545, 0.5, 0, -0.5, 0.8660253, 0, 0, 0)
|
||||
script = ExtResource("1_v4apc")
|
||||
|
||||
[node name="DragRaycast" type="RayCast3D" parent="."]
|
||||
target_position = Vector3(0, 0, -10)
|
||||
|
||||
[node name="InteractionArea" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractionArea"]
|
||||
transform = Transform3D(1, 0, 0, 0, -2.9802322e-08, -1, 0, 1, -2.9802322e-08, 0, 3.5762787e-07, -5.2500005)
|
||||
shape = SubResource("CapsuleShape3D_hflkp")
|
||||
Loading…
Add table
Add a link
Reference in a new issue