started work on gun switching, need to iron out kinks and set up weapon management script
This commit is contained in:
@@ -49,7 +49,7 @@ func _process(delta):
|
||||
ray.enabled = false
|
||||
|
||||
#bullethole effect
|
||||
instance_bullethole = gun.bullethole.instantiate()
|
||||
#instance_bullethole = gun.bullethole.instantiate()
|
||||
ray.get_collider().add_child(instance_bullethole)
|
||||
instance_bullethole.global_transform.origin = ray.get_collision_point()
|
||||
instance_bullethole.look_at(ray.get_collision_point() + ray.get_collision_normal(), Vector3.UP)
|
||||
|
||||
Reference in New Issue
Block a user