Skip to content

Commit

Permalink
friction and damps to 0 for perfect bounce
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanBosnali committed May 26, 2021
1 parent b3b8a55 commit 7e2eb44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scene_resources/Projectile.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
[ext_resource path="res://image_resources/bullet.png" type="Texture" id=1]
[ext_resource path="res://Projectile.gd" type="Script" id=2]


[sub_resource type="PhysicsMaterial" id=1]
friction = 0.3
friction = 0.0
bounce = 1.0

[sub_resource type="CircleShape2D" id=2]

[node name="Projectile" type="RigidBody2D"]
physics_material_override = SubResource( 1 )
gravity_scale = 0.0
linear_damp = 0.0
angular_damp = 0.0
script = ExtResource( 2 )

[node name="Sprite" type="Sprite" parent="."]
Expand Down

0 comments on commit 7e2eb44

Please sign in to comment.