A RayCast graph,Player with seeker,AiLerp,AiDestinationSetter,MouseButtonDown question

There are some blank plane around cube after scan,but i cant fix it and i dont need fix it because player will overlap with cube when i fix it.

question:i use a empty obj and set it to AiDestinationSetter target,mouse button down use Screen RayCast to return a plane hit point then set it to empty obj transform position,now i need when i mouse button down a plane without scan(like last png blank plane),AiDestinationSetter target would not change,hao can i achieve it :grinning:

need help :drooling_face: :upside_down_face:

I’m not sure I’m fully understanding this, but if you’re trying to set a position on the plane to your unit’s target, you won’t need AIDestinationSetter at all for this- instead of passing the raycast hit point to the empty objects position, you can simple set AILerp’s destination directly to the hit.point from your Raycast. Right after setting it you may have to call SearchPath.

That way you don’t have to worry about AIDestinationSetter not changing :slight_smile: