Files
SpaceBots/.svn/pristine/c7/c7210c9e10cd0357967386efb25d91bd78b6ffe6.svn-base

13 lines
285 B
Plaintext
Raw Normal View History

2026-01-21 23:51:53 +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