diff options
author | Malfurious <m@lfurio.us> | 2022-07-17 20:58:01 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-07-17 20:58:01 -0400 |
commit | d9f1c33887761b8bcbc143e6d4582d634a9fd6ce (patch) | |
tree | 78c01d91420317c472afc9111b8d3e1d9ed8e085 /assets/maps/misc/dev_plane | |
parent | ad7634bbc325269b5abce97d921b4aa7fab3a685 (diff) | |
download | project-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 'assets/maps/misc/dev_plane')
-rw-r--r-- | assets/maps/misc/dev_plane/DevPlane.tscn | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/assets/maps/misc/dev_plane/DevPlane.tscn b/assets/maps/misc/dev_plane/DevPlane.tscn index 228e30b..a17a112 100644 --- a/assets/maps/misc/dev_plane/DevPlane.tscn +++ b/assets/maps/misc/dev_plane/DevPlane.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://assets/maps/misc/dev_plane/tile_color.png" type="Texture" id=1] +[ext_resource path="res://assets/view_model/ViewModel.tscn" type="PackedScene" id=2] [sub_resource type="SpatialMaterial" id=6] albedo_texture = ExtResource( 1 ) @@ -29,8 +30,8 @@ transform = Transform( -4.37114e-08, -0.292372, 0.956305, 0, 0.956305, 0.292372, shadow_enabled = true directional_shadow_blend_splits = true -[node name="Camera" type="Camera" parent="."] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.70758, 7.29223 ) +[node name="ViewModel" parent="." instance=ExtResource( 2 )] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 12 ) [node name="Geometry" type="Spatial" parent="."] |