Godot Version
4.3
Question
i tried to make an fps and wanted to add bulletholes when you shoot, the bulletholes are circles, but if you shoot, the bulletholes are stretched and bigger, and i want them to be at its original size, also the bullethole is exact at the same position as the wall/ground wich can make some weird texture visuals
func fire() -> void:
# While firing, apply continuous shake
shake_intensity = 0.5 # Full intensity shake during fire
# Apply shake (rotation)
camera.rotation = lerp(camera.rotation, Vector3(
randf_range(MAX_CAMERA_SHAKE * shake_intensity, -MAX_CAMERA_SHAKE * shake_intensity),
randf_range(MAX_CAMERA_SHAKE * shake_intensity, -MAX_CAMERA_SHAKE * shake_intensity),
0), 0.5)
# Handle shooter collision and damage
if shooter.is_colliding():
var target = shooter.get_collider()
if target:
#target.health -= gun_damage
create_bullet_hole()
func create_bullet_hole() -> void:
var bulletHoleNode = BULLET_HOLE.instantiate()
shooter.get_collider().add_child(bulletHoleNode)
bulletHoleNode.global_position = shooter.get_collision_point()
bulletHoleNode.look_at(bulletHoleNode.global_position + shooter.get_collision_normal(), Vector3.UP)