first
This commit is contained in:
12
actors/Enemies/Spider/step_ray.gd
Normal file
12
actors/Enemies/Spider/step_ray.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends RayCast3D
|
||||
|
||||
@export var step_target: Marker3D
|
||||
|
||||
func _ready() -> void:
|
||||
step_target.top_level = true
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
var col_point = get_collision_point()
|
||||
if col_point:
|
||||
step_target.global_position = col_point + Vector3(0,0.78,0)*owner.scale.x
|
||||
Reference in New Issue
Block a user