Files

13 lines
285 B
GDScript3
Raw Permalink Normal View History

2026-01-21 23:40:20 +01:00
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