Engineer animated, tweaked interaction logic.
parent
f280271de5
commit
01d95a145a
File diff suppressed because it is too large
Load Diff
|
@ -65,9 +65,7 @@ func _unhandled_input(_event: InputEvent) -> void:
|
||||||
if Input.is_action_just_pressed("ui_accept"):
|
if Input.is_action_just_pressed("ui_accept"):
|
||||||
var actionables = actionable_detector.get_overlapping_areas()
|
var actionables = actionable_detector.get_overlapping_areas()
|
||||||
if actionables.size() > 0:
|
if actionables.size() > 0:
|
||||||
print("player position: " + str(position) + " actionables position: " + str(actionables[0].global_position))
|
|
||||||
look_direction = (actionables[0].global_position - position).normalized()
|
look_direction = (actionables[0].global_position - position).normalized()
|
||||||
# geometry.look_at(actionables[0].global_position, Vector3.UP)
|
|
||||||
actionables[0].action()
|
actionables[0].action()
|
||||||
|
|
||||||
get_viewport().set_input_as_handled()
|
get_viewport().set_input_as_handled()
|
||||||
|
|
|
@ -76,72 +76,10 @@ transform = Transform3D(0.839762, 0, 0.542955, 0, 1, 0, -0.542955, 0, 0.839762,
|
||||||
[node name="Rogue" parent="." instance=ExtResource("11_4cmvr")]
|
[node name="Rogue" parent="." instance=ExtResource("11_4cmvr")]
|
||||||
transform = Transform3D(0.288245, 0, -0.408552, 0, 0.5, 0, 0.408552, 0, 0.288245, 0.770785, 0, -0.103924)
|
transform = Transform3D(0.288245, 0, -0.408552, 0, 0.5, 0, 0.408552, 0, 0.288245, 0.770785, 0, -0.103924)
|
||||||
|
|
||||||
[node name="Skeleton3D" parent="Rogue/Rig" index="0"]
|
|
||||||
bones/1/position = Vector3(-2.84837e-08, 0.0833394, 0.119469)
|
|
||||||
bones/1/rotation = Quaternion(-0.175269, -1.17364e-07, -2.08937e-08, 0.984521)
|
|
||||||
bones/2/rotation = Quaternion(-7.55703e-09, 0.167251, -6.91603e-09, 0.985914)
|
|
||||||
bones/3/rotation = Quaternion(0.0880089, -0.144759, -0.0256382, 0.985212)
|
|
||||||
bones/4/position = Vector3(0.21746, 0.0758712, -0.0790641)
|
|
||||||
bones/4/rotation = Quaternion(-0.50947, 0.104276, -0.643679, 0.561467)
|
|
||||||
bones/5/rotation = Quaternion(-4.50514e-08, -2.70422e-08, -0.586852, 0.809695)
|
|
||||||
bones/7/rotation = Quaternion(0.484512, -0.207236, 0.521791, 0.670847)
|
|
||||||
bones/8/rotation = Quaternion(1.60975e-09, 1.60975e-09, -0.707107, 0.707107)
|
|
||||||
bones/10/position = Vector3(-0.255796, 0.0363052, -0.0434782)
|
|
||||||
bones/10/rotation = Quaternion(-0.62846, 0.0929782, 0.672582, 0.379508)
|
|
||||||
bones/11/rotation = Quaternion(-1.47479e-08, 5.90916e-08, 0.47487, 0.880056)
|
|
||||||
bones/13/rotation = Quaternion(-0.251916, 0.144353, -0.329644, 0.898352)
|
|
||||||
bones/14/rotation = Quaternion(0.478104, -0.344156, 0.495796, 0.638091)
|
|
||||||
bones/19/rotation = Quaternion(0.0785513, -0.0203664, 0.0468292, 0.995601)
|
|
||||||
bones/21/position = Vector3(0.129825, 0.0937154, 0.113309)
|
|
||||||
bones/21/rotation = Quaternion(0.643386, 0.23148, -0.140509, 0.716051)
|
|
||||||
bones/22/rotation = Quaternion(0.834207, 8.24215e-09, -5.46128e-07, 0.551451)
|
|
||||||
bones/23/rotation = Quaternion(-0.375958, 0.0247004, -0.0361405, 0.925602)
|
|
||||||
bones/25/position = Vector3(-0.152764, 0.0962428, 0.105014)
|
|
||||||
bones/25/rotation = Quaternion(0.688971, -0.0853366, 0.195185, 0.692777)
|
|
||||||
bones/26/rotation = Quaternion(0.596211, -4.50314e-08, 3.98116e-07, 0.802828)
|
|
||||||
bones/27/rotation = Quaternion(-0.673783, -0.132482, 0.048611, 0.725329)
|
|
||||||
bones/29/position = Vector3(0.47237, 0.29231, 0.748253)
|
|
||||||
bones/29/rotation = Quaternion(0.695266, 0.12886, -0.12886, 0.695266)
|
|
||||||
bones/30/position = Vector3(0.281208, 0.0259903, 0.591192)
|
|
||||||
bones/30/rotation = Quaternion(-0.60678, 0.143396, 0.11246, 0.773698)
|
|
||||||
bones/31/position = Vector3(0.0185372, 0.302979, -0.06597)
|
|
||||||
bones/31/rotation = Quaternion(0.00811112, 0.138139, 0.987181, -0.0795382)
|
|
||||||
bones/36/position = Vector3(-0.385815, 0.29231, 0.793429)
|
|
||||||
bones/36/rotation = Quaternion(0.695266, -0.12886, 0.12886, 0.695266)
|
|
||||||
bones/37/position = Vector3(-0.28153, 0.0259903, 0.59293)
|
|
||||||
bones/37/rotation = Quaternion(-0.60678, -0.143396, -0.11246, 0.773698)
|
|
||||||
bones/38/position = Vector3(-1.03442e-08, 0.0355176, 2.42861e-15)
|
|
||||||
bones/38/rotation = Quaternion(-6.43687e-09, 0.707107, 0.707107, -3.64558e-09)
|
|
||||||
bones/41/rotation = Quaternion(1, 1.69223e-08, 1.98681e-07, -7.45058e-09)
|
|
||||||
bones/43/position = Vector3(0.453507, 0.516276, -0.541885)
|
|
||||||
bones/44/position = Vector3(0.424984, 0.307011, -0.211567)
|
|
||||||
bones/44/rotation = Quaternion(0.635111, 0.31086, 0.31086, -0.635111)
|
|
||||||
bones/45/position = Vector3(-0.453507, 0.516276, -0.541885)
|
|
||||||
bones/46/position = Vector3(-0.537515, 0.355068, 0.0136795)
|
|
||||||
bones/46/rotation = Quaternion(-0.703979, 0.0664364, 0.703979, 0.0664366)
|
|
||||||
|
|
||||||
[node name="Knife_Offhand" parent="Rogue/Rig/Skeleton3D" index="0"]
|
|
||||||
transform = Transform3D(-0.789721, 0.613466, -5.00991e-08, 9.10955e-07, 1.63913e-06, 0.999999, 0.613465, 0.789721, -1.55019e-06, 0.522692, 0.185527, -0.240803)
|
|
||||||
|
|
||||||
[node name="1H_Crossbow" parent="Rogue/Rig/Skeleton3D" index="1"]
|
|
||||||
transform = Transform3D(0.122557, -0.273717, -0.95397, -0.991848, 1.2327e-06, -0.127424, 0.034879, 0.96181, -0.271486, -0.431347, 0.220589, 0.081206)
|
|
||||||
|
|
||||||
[node name="2H_Crossbow" parent="Rogue/Rig/Skeleton3D" index="2"]
|
|
||||||
transform = Transform3D(0.122557, -0.273717, -0.95397, -0.991848, 1.2327e-06, -0.127424, 0.034879, 0.96181, -0.271486, -0.431347, 0.220589, 0.081206)
|
|
||||||
|
|
||||||
[node name="Knife" parent="Rogue/Rig/Skeleton3D" index="3"]
|
|
||||||
transform = Transform3D(0.95397, -0.273716, 0.122557, 0.127424, 9.55173e-07, -0.991848, 0.271485, 0.96181, 0.0348787, -0.533994, 0.207257, 0.0627638)
|
|
||||||
|
|
||||||
[node name="Throwable" parent="Rogue/Rig/Skeleton3D" index="4"]
|
|
||||||
transform = Transform3D(0.95397, -0.273716, 0.122557, 0.127424, 1.07529e-06, -0.991848, 0.271485, 0.96181, 0.0348788, -0.58333, 0.207257, 0.236126)
|
|
||||||
|
|
||||||
[node name="Rogue_Cape" parent="Rogue/Rig/Skeleton3D" index="5"]
|
|
||||||
transform = Transform3D(0.995827, 0.0832756, 0.0373211, -0.088763, 0.978856, 0.184287, -0.0211854, -0.18683, 0.982164, 0.0202564, 0.853573, -0.121643)
|
|
||||||
|
|
||||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
|
|
||||||
[node name="Camera3D" type="Camera3D" parent="."]
|
[node name="Camera3D" type="Camera3D" parent="."]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
transform = Transform3D(1, 0, 0, 0, 0.874755, 0.484565, 0, -0.484565, 0.874755, -0.324179, 0.800866, 0.927808)
|
transform = Transform3D(1, 0, 0, 0, 0.673426, 0.739255, 0, -0.739255, 0.673426, -0.0135226, 1.41155, 0.700904)
|
||||||
|
|
||||||
[editable path="Rogue"]
|
[editable path="Rogue"]
|
||||||
|
|
Loading…
Reference in New Issue