improved bullet holes a lot

This commit is contained in:
derek
2024-12-05 12:50:31 -06:00
parent 023879ea9f
commit f6812b167f
8 changed files with 55 additions and 13 deletions

View File

@@ -54,6 +54,7 @@ func _physics_process(delta):
instance_bullethole.look_at(ray.get_collision_point() + ray.get_collision_normal(), Vector3(0,0,1))
else:
instance_bullethole.look_at(ray.get_collision_point() + ray.get_collision_normal())
instance_bullethole.rotation.z = deg_to_rad(randf_range(0,360))
if body.is_in_group("switch"):
body.hit()