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="GSAIArrive" inherits="GSAISteeringBehavior" version="4.2">
|
2023-01-14 13:38:58 +01:00
|
|
|
<brief_description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Calculates acceleration to take an agent to its target's location. The calculation attempts to arrive with zero remaining velocity.
|
2023-01-14 13:38:58 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Calculates acceleration to take an agent to its target's location. The calculation attempts to arrive with zero remaining velocity.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="_arrive" qualifiers="virtual">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="acceleration" type="GSAITargetAcceleration" />
|
|
|
|
<argument index="1" name="target_position" type="Vector3" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="arrive">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="acceleration" type="GSAITargetAcceleration" />
|
|
|
|
<argument index="1" name="target_position" type="Vector3" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="arrival_tolerance" type="float" setter="set_arrival_tolerance" getter="get_arrival_tolerance" default="0.0">
|
2023-01-14 14:31:39 +01:00
|
|
|
Distance from the target for the agent to be considered successfully arrived.
|
2023-01-14 13:38:58 +01:00
|
|
|
</member>
|
|
|
|
<member name="deceleration_radius" type="float" setter="set_deceleration_radius" getter="get_deceleration_radius" default="0.0">
|
2023-01-14 14:31:39 +01:00
|
|
|
Distance from the target for the agent to begin slowing down.
|
2023-01-14 13:38:58 +01:00
|
|
|
</member>
|
|
|
|
<member name="target" type="GSAIAgentLocation" setter="set_target" getter="get_target">
|
2023-01-14 14:31:39 +01:00
|
|
|
Target agent to arrive to.
|
2023-01-14 13:38:58 +01:00
|
|
|
</member>
|
|
|
|
<member name="time_to_reach" type="float" setter="set_time_to_reach" getter="get_time_to_reach" default="0.1">
|
2023-01-14 14:31:39 +01:00
|
|
|
Represents the time it takes to change acceleration.
|
2023-01-14 13:38:58 +01:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|