13 lines
285 B
GDScript
13 lines
285 B
GDScript
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
|