diff options
author | Malfurious <m@lfurio.us> | 2022-07-22 05:06:22 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-07-22 05:06:22 -0400 |
commit | f1923b54231daac260950baecd0377f49b2ab641 (patch) | |
tree | 07e6201df08b817f6eb1695976188f960de5e6ef | |
parent | 1f534358c264560662793ff72bfcc57d3d155b5b (diff) | |
download | project-s-f1923b54231daac260950baecd0377f49b2ab641.tar.gz project-s-f1923b54231daac260950baecd0377f49b2ab641.zip |
Tweak Goo Gun bullet physics to better mimic reference weapon
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r-- | assets/weapons/goo_gun/Bullet.tscn | 2 | ||||
-rw-r--r-- | assets/weapons/goo_gun/GooGun.gd | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/assets/weapons/goo_gun/Bullet.tscn b/assets/weapons/goo_gun/Bullet.tscn index 3971cc1..4a1700c 100644 --- a/assets/weapons/goo_gun/Bullet.tscn +++ b/assets/weapons/goo_gun/Bullet.tscn @@ -9,6 +9,8 @@ material = ExtResource( 1 ) [node name="Bullet" type="RigidBody"] transform = Transform( 0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0 ) +gravity_scale = 5.0 +linear_damp = 2.0 [node name="MeshInstance" type="MeshInstance" parent="."] mesh = SubResource( 1 ) diff --git a/assets/weapons/goo_gun/GooGun.gd b/assets/weapons/goo_gun/GooGun.gd index 4839f09..6a6758d 100644 --- a/assets/weapons/goo_gun/GooGun.gd +++ b/assets/weapons/goo_gun/GooGun.gd @@ -1,9 +1,9 @@ extends Spatial export var is_firing = false -export var fire_rate = 0.1 +export var fire_rate = 0.075 export var projectile_spread = 0 #TODO -export var projectile_scalar = 25 +export var projectile_scalar = 40 export var look_angle = 0 export var weapon_pitch = 0 |