pandemonium_engine/modules/steering_ai/doc_classes/GSAIKinematicBody2DAgent.xml

32 lines
1.1 KiB
XML
Raw Normal View History

2023-01-14 13:38:58 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-10-12 01:59:32 +02:00
<class name="GSAIKinematicBody2DAgent" inherits="GSAISpecializedAgent" version="4.2">
2023-01-14 13:38:58 +01:00
<brief_description>
A specialized steering agent that updates itself every frame so the user does not have to using a KinematicBody2D.
2023-01-14 13:38:58 +01:00
</brief_description>
<description>
A specialized steering agent that updates itself every frame so the user does not have to using a KinematicBody2D.
2023-01-14 13:38:58 +01:00
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="body" type="KinematicBody2D" setter="set_body" getter="get_body">
The KinematicBody2D to keep track of.
2023-01-14 13:38:58 +01:00
</member>
<member name="movement_type" type="int" setter="set_movement_type" getter="get_movement_type" default="0">
SLIDE uses move_and_slide.
COLLIDE uses move_and_collide.
POSITION changes the global_position directly.
2023-01-14 13:38:58 +01:00
</member>
</members>
<constants>
2023-01-14 14:35:47 +01:00
<constant name="SLIDE" value="0" enum="MovementType">
</constant>
<constant name="COLLIDE" value="1" enum="MovementType">
</constant>
<constant name="POSITION" value="2" enum="MovementType">
</constant>
2023-01-14 13:38:58 +01:00
</constants>
</class>