From 635cfebff3ec0ce5b74ac728a5655339755efe39 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 16 Jul 2022 15:12:11 +0200 Subject: better mouse handling. correct impulse --- godot/scenes/levels/test_scene_movement/TestSceneMovement.tscn | 2 -- godot/scenes/objects/Player.tscn | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'godot') diff --git a/godot/scenes/levels/test_scene_movement/TestSceneMovement.tscn b/godot/scenes/levels/test_scene_movement/TestSceneMovement.tscn index 688f1c7..d23236b 100644 --- a/godot/scenes/levels/test_scene_movement/TestSceneMovement.tscn +++ b/godot/scenes/levels/test_scene_movement/TestSceneMovement.tscn @@ -28,5 +28,3 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 40, -1, -20 ) transform = Transform( 0.766044, 0, 0.642788, 0, 2, 0, -0.642788, 0, 0.766044, 19.47, 0, -14 ) [node name="PlayerRoot" parent="." instance=ExtResource( 3 )] -input/camera_mouse_sensitivity = Vector2( 0.014, 0.01 ) -input/shoot_sensitivity = 0.041 diff --git a/godot/scenes/objects/Player.tscn b/godot/scenes/objects/Player.tscn index 0d162f4..f8a3fba 100644 --- a/godot/scenes/objects/Player.tscn +++ b/godot/scenes/objects/Player.tscn @@ -6,6 +6,12 @@ [node name="PlayerRoot" type="Spatial"] script = ExtResource( 3 ) +camera/camera_clamp = Vector2( 0, -2 ) +shooting/max_force = 30.0 +shooting/up_angle = 1.0 +shooting/stopping_velocity = 0.003 +input/camera_mouse_sensitivity = Vector2( 0.003, 0.002 ) +input/shoot_sensitivity = 0.3 [node name="W8" parent="." instance=ExtResource( 1 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 ) -- cgit