doors exist and can be opened
This commit is contained in:
parent
67d95714f6
commit
892f85e8ad
@ -1,6 +1,6 @@
|
||||
extends KinematicBody
|
||||
|
||||
# export variable
|
||||
# export variables
|
||||
export(NodePath) var body_nodepath
|
||||
|
||||
# const
|
||||
@ -11,6 +11,7 @@ const SPRINT_SPEED = 40
|
||||
const ACCEL = 4.5
|
||||
const MAX_SLOPE_ANGLE = 40
|
||||
const MOUSE_SENSITIVITY = 0.05
|
||||
const INTERACT_DISTANCE = 5
|
||||
|
||||
# private members
|
||||
var _body: Spatial
|
||||
@ -26,11 +27,13 @@ func _ready():
|
||||
_camera = $Body/Camera
|
||||
assert(null != _camera)
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||
get_node("Body/Camera/LookingAt").cast_to = Vector3(0, 0, INTERACT_DISTANCE)
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
process_input()
|
||||
process_movement(delta)
|
||||
check_interact()
|
||||
|
||||
|
||||
func process_input():
|
||||
@ -82,6 +85,13 @@ func process_movement(delta):
|
||||
_vel.z = hvel.z
|
||||
_vel = move_and_slide(_vel, Vector3(0, 1, 0), 0.05, 4, deg2rad(MAX_SLOPE_ANGLE))
|
||||
|
||||
func check_interact():
|
||||
if Input.is_action_just_pressed("interact"):
|
||||
var ray = get_node("Body/Camera/LookingAt")
|
||||
if ray.is_colliding():
|
||||
var collider = ray.get_collider()
|
||||
if "being_touched" in collider:
|
||||
collider.being_touched = true
|
||||
|
||||
func _input(event):
|
||||
# capture mouse movement
|
||||
|
@ -18,6 +18,11 @@ body_nodepath = NodePath("Body")
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||
current = true
|
||||
|
||||
[node name="LookingAt" type="RayCast" parent="Body/Camera"]
|
||||
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 0, 0, 0 )
|
||||
enabled = true
|
||||
cast_to = Vector3( 0, 0, 2 )
|
||||
|
||||
[node name="Collider" type="CollisionShape" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||
shape = SubResource( 1 )
|
||||
|
@ -1,11 +1,12 @@
|
||||
[gd_scene load_steps=14 format=2]
|
||||
[gd_scene load_steps=15 format=2]
|
||||
|
||||
[ext_resource path="res://Characters/Player/Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Characters/Util/PathNavigatorForNPC.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Characters/Meldewesen/Meldewesen.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Util/NodeGroupNotifier.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Things/Keycard.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://Things/Key.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Things/Key/Key.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://Things/Keycard/Keycard.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Things/Door/Door.tscn" type="PackedScene" id=7]
|
||||
|
||||
[sub_resource type="NavigationMesh" id=1]
|
||||
vertices = PoolVector3Array( -1.9, 0.4, -2.2, 0.200001, 0.4, -2.5, 0.200001, 0.4, -8.5, -8.5, 0.4, -0.0999994, -2.5, 0.4, -0.0999994, -1.9, 0.4, -2.2, -1.9, 0.4, -2.2, 0.200001, 0.4, -8.5, -8.5, 0.4, -8.5, -8.5, 0.4, -0.0999994, 0.200001, 0.4, -8.5, 0.200001, 0.4, -2.5, 2, 0.4, -2.2, 2, 0.4, -2.2, 2.6, 0.4, -0.0999994, 8.6, 0.4, -0.0999994, 2, 0.4, -2.2, 8.6, 0.4, -0.0999994, 8.6, 0.4, -8.5, 0.200001, 0.4, -8.5, -1.3, 0.4, 3.8, 0.200001, 0.4, 3.8, 0.200001, 0.4, 2.6, -2.2, 0.4, 2, -8.5, 0.4, 8.6, -2.2, 0.4, 8.6, -2.5, 0.4, 5, -2.5, 0.4, 5, -1.3, 0.4, 3.8, -2.2, 0.4, 2, -2.5, 0.4, 5, -2.2, 0.4, 2, -2.5, 0.4, -0.0999994, -8.5, 0.4, -0.0999994, -8.5, 0.4, 8.6, 0.200001, 0.4, 2.6, 0.200001, 0.4, 3.8, 1.4, 0.4, 3.8, 2.3, 0.4, 2, 2.6, 0.4, 5, 2.3, 0.4, 8.6, 8.6, 0.4, 8.6, 2.3, 0.4, 2, 1.4, 0.4, 3.8, 2.6, 0.4, 5, 2.6, 0.4, -0.0999994, 2.3, 0.4, 2, 2.6, 0.4, 5, 8.6, 0.4, 8.6, 8.6, 0.4, -0.0999994 )
|
||||
@ -87,8 +88,11 @@ _visibility_path = NodePath("../../MeldewesenNavigator/Meldewesen/Visibility")
|
||||
group_name = "Navigator"
|
||||
node_to_send = NodePath("..")
|
||||
|
||||
[node name="keycard" parent="." instance=ExtResource( 5 )]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5577, 0.523762, 0 )
|
||||
[node name="Key" parent="." instance=ExtResource( 5 )]
|
||||
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -6.89502, 0.788358, 9.21277 )
|
||||
|
||||
[node name="Scene Root" parent="." instance=ExtResource( 6 )]
|
||||
transform = Transform( 0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, -4.54963, 0.528755, -0.206229 )
|
||||
[node name="Keycard" parent="." instance=ExtResource( 6 )]
|
||||
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -6.88316, 0.705314, 8.68398 )
|
||||
|
||||
[node name="Door" parent="." instance=ExtResource( 7 )]
|
||||
transform = Transform( -2.18557e-008, 0, 0.5, 0, 0.5, 0, -0.5, 0, -2.18557e-008, -10, 1, 10 )
|
||||
|
47
Things/Door.gd
Normal file
47
Things/Door.gd
Normal file
@ -0,0 +1,47 @@
|
||||
extends KinematicBody
|
||||
|
||||
# export variables
|
||||
export(bool) var being_touched
|
||||
|
||||
# const
|
||||
const OPENING_SPEED = 50
|
||||
|
||||
# private members
|
||||
var _startingRotY
|
||||
var _isMoving = false
|
||||
var _isOpening = false
|
||||
var _degrees = 0
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
_startingRotY = global_transform.basis.get_euler().y
|
||||
pass
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
#if Input.is_action_just_pressed("interact"):
|
||||
if being_touched:
|
||||
_isMoving = true
|
||||
_isOpening = !_isOpening
|
||||
being_touched = false
|
||||
|
||||
if _isMoving:
|
||||
doorMove(delta)
|
||||
|
||||
pass
|
||||
|
||||
func doorMove(delta):
|
||||
if _isOpening:
|
||||
if _degrees < 100:
|
||||
_degrees += OPENING_SPEED * delta
|
||||
else:
|
||||
_degrees = 100
|
||||
_isMoving = false
|
||||
else:
|
||||
if _degrees > 0:
|
||||
_degrees -= OPENING_SPEED * delta
|
||||
else:
|
||||
_degrees = 0
|
||||
_isMoving = false
|
||||
rotate_y(_degrees * PI/180 - global_transform.basis.get_euler().y + _startingRotY)
|
||||
pass
|
13
Things/Door/Door.gd
Normal file
13
Things/Door/Door.gd
Normal file
@ -0,0 +1,13 @@
|
||||
extends KinematicBody
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
31
Things/Door/Door.tscn
Normal file
31
Things/Door/Door.tscn
Normal file
@ -0,0 +1,31 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Things/Door.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CubeMesh" id=1]
|
||||
|
||||
[sub_resource type="SphereMesh" id=2]
|
||||
|
||||
[sub_resource type="BoxShape" id=3]
|
||||
|
||||
[node name="Door" type="KinematicBody"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="DoorMesh" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 2, 0, 0, 0, 0.1, 1, 0, 0 )
|
||||
mesh = SubResource( 1 )
|
||||
material/0 = null
|
||||
|
||||
[node name="KnobMesh" type="MeshInstance" parent="."]
|
||||
transform = Transform( 0.12, 0, 0, 0, 0.12, 0, 0, 0, 0.12, 1.78, 0, 0.202 )
|
||||
mesh = SubResource( 2 )
|
||||
material/0 = null
|
||||
|
||||
[node name="KnobMesh2" type="MeshInstance" parent="."]
|
||||
transform = Transform( 0.12, 0, 0, 0, 0.12, 0, 0, 0, 0.12, 1.78, 0, -0.205 )
|
||||
mesh = SubResource( 2 )
|
||||
material/0 = null
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 2, 0, 0, 0, 0.1, 1, 0, 0 )
|
||||
shape = SubResource( 3 )
|
@ -19,14 +19,11 @@ surfaces/0 = {
|
||||
"vertex_count": 321
|
||||
}
|
||||
|
||||
[node name="Scene Root" index="0" instance=ExtResource( 1 )]
|
||||
[node name="Key" instance=ExtResource( 1 )]
|
||||
|
||||
[node name="Spatial" type="Spatial" parent="." index="0"]
|
||||
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0 )
|
||||
|
||||
[node name="Cube001" type="MeshInstance" parent="Spatial" index="0"]
|
||||
transform = Transform( 0.03, 0, 0, 0, 0.2, 0, 0, 0, 0.3, 0, 0.712916, 0.4 )
|
||||
[node name="Key" type="MeshInstance" parent="Spatial" index="0"]
|
||||
transform = Transform( 0.003, 0, 0, 0, 0.02, 0, 0, 0, 0.03, 0, 0, 0 )
|
||||
mesh = SubResource( 1 )
|
||||
material/0 = ExtResource( 2 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Spatial" index="1"]
|
@ -1,12 +0,0 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Models/keycard/keycard.dae" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Models/keycard/Material_002.material" type="Material" id=2]
|
||||
[ext_resource path="res://Models/keycard/Material.material" type="Material" id=3]
|
||||
|
||||
[node name="Scene Root" instance=ExtResource( 1 )]
|
||||
|
||||
[node name="Cube" parent="." index="0"]
|
||||
transform = Transform( 0.003, 0, 0, 0, 0.06, 0, 0, 0, 0.1, 0, 0, 0 )
|
||||
material/0 = ExtResource( 2 )
|
||||
material/1 = ExtResource( 3 )
|
44
Things/Keycard/Keycard.tscn
Normal file
44
Things/Keycard/Keycard.tscn
Normal file
@ -0,0 +1,44 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Models/keycard/keycard.dae" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Models/keycard/Material_002.material" type="Material" id=2]
|
||||
[ext_resource path="res://Models/keycard/Material.material" type="Material" id=3]
|
||||
|
||||
[sub_resource type="ArrayMesh" id=1]
|
||||
resource_name = "Cube"
|
||||
surfaces/0 = {
|
||||
"aabb": AABB( 1, -1, -1, 1.00136e-005, 2, 2.00001 ),
|
||||
"array_data": PoolByteArray( 0, 0, 128, 63, 205, 204, 76, 191, 0, 0, 128, 63, 127, 0, 0, 0, 0, 0, 129, 127, 0, 0, 51, 59, 0, 0, 128, 63, 0, 0, 128, 191, 129, 202, 89, 63, 127, 0, 0, 0, 0, 0, 129, 127, 198, 44, 0, 60, 0, 0, 128, 63, 0, 0, 128, 191, 154, 153, 89, 191, 127, 0, 0, 0, 0, 0, 129, 127, 102, 59, 0, 60, 0, 0, 128, 63, 205, 204, 76, 191, 0, 0, 128, 191, 127, 0, 0, 0, 0, 0, 129, 127, 0, 60, 51, 59, 0, 0, 128, 63, 205, 204, 76, 63, 0, 0, 128, 191, 127, 0, 0, 0, 0, 0, 130, 127, 0, 60, 102, 46, 0, 0, 128, 63, 0, 0, 128, 63, 154, 153, 89, 191, 127, 0, 0, 0, 0, 0, 129, 127, 102, 59, 0, 0, 0, 0, 128, 63, 0, 0, 128, 63, 154, 153, 89, 63, 127, 0, 0, 0, 0, 0, 129, 127, 204, 44, 0, 0, 0, 0, 128, 63, 205, 204, 76, 63, 0, 0, 128, 63, 127, 0, 0, 0, 0, 0, 129, 127, 0, 0, 102, 46 ),
|
||||
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 2, 0, 0, 0, 3, 0, 3, 0, 0, 0, 4, 0, 4, 0, 6, 0, 5, 0, 6, 0, 4, 0, 7, 0, 7, 0, 4, 0, 0, 0 ),
|
||||
"blend_shape_data": [ ],
|
||||
"format": 97559,
|
||||
"index_count": 18,
|
||||
"material": ExtResource( 2 ),
|
||||
"name": "Material.002",
|
||||
"primitive": 4,
|
||||
"skeleton_aabb": [ ],
|
||||
"vertex_count": 8
|
||||
}
|
||||
surfaces/1 = {
|
||||
"aabb": AABB( -1, -1, -1, 2.00001, 2.00001, 2 ),
|
||||
"array_data": PoolByteArray( 0, 0, 128, 63, 0, 0, 128, 63, 154, 153, 89, 63, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 0, 0, 128, 63, 154, 153, 89, 191, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 0, 0, 128, 63, 154, 153, 89, 63, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 63, 205, 204, 76, 63, 0, 0, 128, 63, 0, 76, 101, 0, 126, 250, 4, 129, 0, 57, 0, 58, 0, 0, 128, 191, 0, 0, 128, 63, 154, 153, 89, 63, 0, 76, 101, 0, 126, 250, 4, 129, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 63, 0, 0, 128, 63, 0, 76, 101, 0, 126, 250, 4, 129, 0, 57, 0, 56, 0, 0, 128, 63, 205, 204, 76, 191, 0, 0, 128, 63, 0, 0, 127, 0, 99, 79, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 63, 0, 0, 128, 63, 0, 0, 127, 0, 99, 79, 0, 127, 0, 57, 0, 56, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 63, 0, 0, 127, 0, 127, 0, 0, 129, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 191, 0, 0, 129, 0, 127, 0, 0, 127, 0, 54, 0, 52, 0, 0, 128, 63, 205, 204, 76, 63, 0, 0, 128, 191, 0, 0, 129, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 63, 205, 204, 76, 191, 0, 0, 128, 191, 0, 0, 129, 0, 127, 0, 0, 127, 0, 57, 0, 52, 0, 0, 128, 63, 0, 0, 128, 63, 154, 153, 89, 191, 0, 76, 155, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 63, 0, 0, 128, 191, 0, 76, 155, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 0, 0, 128, 63, 154, 153, 89, 191, 0, 76, 155, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 63, 205, 204, 76, 191, 0, 0, 128, 191, 0, 180, 155, 0, 125, 14, 246, 129, 0, 57, 0, 52, 0, 0, 128, 191, 0, 0, 128, 191, 154, 153, 89, 191, 0, 180, 155, 0, 125, 14, 246, 129, 0, 54, 104, 48, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 191, 0, 180, 155, 0, 127, 0, 0, 127, 0, 54, 0, 52, 0, 0, 128, 63, 0, 0, 128, 191, 129, 202, 89, 63, 0, 180, 101, 0, 126, 0, 0, 129, 0, 57, 117, 38, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 63, 0, 180, 101, 0, 126, 0, 0, 129, 0, 0, 0, 60, 0, 0, 128, 191, 0, 0, 128, 191, 178, 104, 89, 63, 0, 180, 101, 0, 126, 0, 0, 129, 0, 54, 130, 38, 0, 0, 128, 191, 0, 0, 128, 191, 178, 104, 89, 63, 0, 129, 0, 0, 237, 0, 131, 129, 0, 54, 130, 38, 0, 0, 128, 63, 0, 0, 128, 191, 154, 153, 89, 191, 0, 129, 0, 0, 237, 0, 131, 129, 0, 0, 0, 60, 0, 0, 128, 63, 0, 0, 128, 191, 129, 202, 89, 63, 0, 129, 0, 0, 126, 0, 0, 127, 0, 57, 117, 38, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 191, 129, 0, 0, 0, 0, 59, 112, 129, 0, 54, 0, 52, 0, 0, 128, 191, 0, 0, 128, 191, 154, 153, 89, 191, 129, 0, 0, 0, 127, 0, 0, 127, 0, 54, 104, 48, 0, 0, 128, 191, 0, 0, 128, 191, 178, 104, 89, 63, 129, 0, 0, 0, 0, 10, 130, 127, 0, 54, 130, 38, 0, 0, 128, 63, 0, 0, 128, 63, 154, 153, 89, 191, 0, 127, 0, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 63, 0, 0, 128, 63, 154, 153, 89, 63, 0, 76, 101, 0, 127, 0, 0, 129, 0, 0, 0, 60, 0, 0, 128, 63, 205, 204, 76, 63, 0, 0, 128, 63, 0, 0, 127, 0, 99, 79, 0, 127, 0, 57, 0, 58, 0, 0, 128, 191, 205, 204, 76, 63, 0, 0, 128, 191, 0, 0, 129, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 63, 205, 204, 76, 63, 0, 0, 128, 191, 0, 76, 155, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 63, 0, 0, 128, 191, 154, 153, 89, 191, 0, 180, 155, 0, 125, 14, 246, 129, 0, 0, 0, 60, 0, 0, 128, 63, 0, 0, 128, 191, 129, 202, 89, 63, 0, 181, 101, 0, 127, 0, 0, 129, 0, 57, 117, 38, 0, 0, 128, 63, 205, 204, 76, 191, 0, 0, 128, 63, 0, 181, 101, 0, 127, 0, 0, 129, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 63, 0, 181, 101, 0, 127, 0, 0, 129, 0, 0, 0, 60, 0, 0, 128, 191, 0, 0, 128, 191, 154, 153, 89, 191, 0, 129, 0, 0, 237, 0, 131, 129, 0, 54, 104, 48, 0, 0, 128, 191, 205, 204, 76, 191, 0, 0, 128, 63, 129, 0, 0, 0, 0, 126, 8, 127, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 63, 0, 0, 128, 63, 129, 0, 0, 0, 0, 59, 112, 129, 0, 57, 0, 56, 0, 0, 128, 191, 0, 0, 128, 63, 154, 153, 89, 63, 129, 0, 0, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 0, 0, 128, 63, 154, 153, 89, 191, 129, 0, 0, 0, 127, 0, 0, 127, 0, 0, 0, 60, 0, 0, 128, 191, 205, 204, 76, 63, 0, 0, 128, 191, 129, 0, 0, 0, 0, 59, 112, 129, 0, 0, 0, 60 ),
|
||||
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 3, 0, 5, 0, 4, 0, 6, 0, 8, 0, 7, 0, 9, 0, 11, 0, 10, 0, 12, 0, 14, 0, 13, 0, 15, 0, 17, 0, 16, 0, 18, 0, 20, 0, 19, 0, 21, 0, 23, 0, 22, 0, 24, 0, 26, 0, 25, 0, 0, 0, 1, 0, 27, 0, 3, 0, 4, 0, 28, 0, 6, 0, 7, 0, 29, 0, 9, 0, 10, 0, 30, 0, 12, 0, 13, 0, 31, 0, 15, 0, 16, 0, 32, 0, 33, 0, 35, 0, 34, 0, 21, 0, 22, 0, 36, 0, 26, 0, 24, 0, 37, 0, 37, 0, 24, 0, 38, 0, 38, 0, 40, 0, 39, 0, 40, 0, 38, 0, 41, 0, 41, 0, 38, 0, 24, 0 ),
|
||||
"blend_shape_data": [ ],
|
||||
"format": 97559,
|
||||
"index_count": 66,
|
||||
"material": ExtResource( 3 ),
|
||||
"name": "Material",
|
||||
"primitive": 4,
|
||||
"skeleton_aabb": [ ],
|
||||
"vertex_count": 42
|
||||
}
|
||||
|
||||
[node name="Keycard" instance=ExtResource( 1 )]
|
||||
|
||||
[node name="Spatial" type="Spatial" parent="." index="0"]
|
||||
|
||||
[node name="Keycard" type="MeshInstance" parent="Spatial" index="0"]
|
||||
transform = Transform( 0.005, 0, 0, 0, 0.06, 0, 0, 0, 0.1, 0, 0, 0 )
|
||||
mesh = SubResource( 1 )
|
||||
material/0 = ExtResource( 2 )
|
||||
material/1 = ExtResource( 3 )
|
@ -109,6 +109,11 @@ move_sprint={
|
||||
}
|
||||
take_pill={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
interact={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user