summaryrefslogtreecommitdiffstats
path: root/assets/view_model/ViewModel.tscn
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-07-17 20:58:01 -0400
committerMalfurious <m@lfurio.us>2022-07-17 20:58:01 -0400
commitd9f1c33887761b8bcbc143e6d4582d634a9fd6ce (patch)
tree78c01d91420317c472afc9111b8d3e1d9ed8e085 /assets/view_model/ViewModel.tscn
parentad7634bbc325269b5abce97d921b4aa7fab3a685 (diff)
downloadproject-s-d9f1c33887761b8bcbc143e6d4582d634a9fd6ce.tar.gz
project-s-d9f1c33887761b8bcbc143e6d4582d634a9fd6ce.zip
Add view model implementing character movement
Basic movement and mouse aim is implemented. The view model is added to DevPlane (replacing the static camera) for testing. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r--assets/view_model/ViewModel.tscn18
1 files changed, 18 insertions, 0 deletions
diff --git a/assets/view_model/ViewModel.tscn b/assets/view_model/ViewModel.tscn
new file mode 100644
index 0000000..39fffb5
--- /dev/null
+++ b/assets/view_model/ViewModel.tscn
@@ -0,0 +1,18 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://assets/characters/base_character/BaseCharacter.tscn" type="PackedScene" id=1]
+[ext_resource path="res://assets/view_model/ViewModel.gd" type="Script" id=2]
+
+[node name="ViewModel" type="Spatial"]
+script = ExtResource( 2 )
+
+[node name="BaseCharacter" parent="." instance=ExtResource( 1 )]
+
+[node name="Anchor" type="Spatial" parent="."]
+
+[node name="SpringArm" type="SpringArm" parent="Anchor"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0 )
+spring_length = 4.0
+margin = 0.05
+
+[node name="Camera" type="Camera" parent="Anchor/SpringArm"]