LimboAI
โดย limbonaut
ปลั๊กอิน AI สำหรับ Godot 4 ที่ใช้ behavior tree และ state machine พร้อม Blackboard และเครื่องมือตรวจการทำงาน เหมาะกับการจัดตรรกะตัวละครเป็นงานย่อย
เริ่มต้น: เลือกรายการ LimboAI ใน Godot Asset Library ให้ตรงกับรุ่นเอนจิน โดยรายการ 1.8.1 ที่ตรวจระบุ Godot 4.6+ ไม่ควรนำไปใช้กับ Godot 4 ทุกรุ่นโดยอัตโนมัติ
ลองใช้: เพิ่ม BTPlayer ให้ตัวละคร กำหนด BehaviorTree ที่รวมเงื่อนไขและ action แล้วใช้ Blackboard แชร์ค่าระหว่างงาน ตั้ง agent_node ให้ชี้ไปยังตัวละครที่ต้องการควบคุม
ปรับแต่ง: สร้าง action จาก BTAction หรือเงื่อนไขจาก BTCondition และวาง custom tasks ใน res://ai/tasks ตามคู่มือ เหมาะกับต้นแบบ patrol หรือเลือกโจมตี แต่ตรรกะเฉพาะเกมยังต้องออกแบบเอง
แหล่งอ้างอิง: https://limboai.readthedocs.io/en/stable/ · https://godotengine.org/asset-library/asset/4852 · https://limboai.readthedocs.io/en/stable/classes/class_btplayer.html · https://limboai.readthedocs.io/en/stable/classes/class_behaviortree.html · https://limboai.readthedocs.io/en/stable/behavior-trees/custom-tasks.html