pub fn look_at(
name: &str,
yaw_key: &str,
pos_key: &str,
target_key: &str,
turn_speed: f32,
tolerance_rad: f32,
) -> BehaviorNodeExpand description
Smoothly rotate the agent’s yaw toward a target.
Reads:
"{yaw_key}"— current yaw angle in radians (f64)"{target_key}"— target position (Vec3) or target yaw directly (f64, taken as absolute yaw)"{pos_key}"— agent position (Vec3, only needed if target is Vec3)
Writes:
"{yaw_key}"— updated yaw
Succeeds when angular delta ≤ tolerance_rad.