pandemonium_engine/modules/steering_ai/doc_classes/GSAISteeringBehavior.xml

40 lines
1.6 KiB
XML
Raw Normal View History

2023-01-14 13:38:58 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="GSAISteeringBehavior" inherits="Reference" version="3.11">
<brief_description>
Base class for all steering behaviors.
2023-01-14 13:38:58 +01:00
</brief_description>
<description>
Base class for all steering behaviors.
Steering behaviors calculate the linear and the angular acceleration to be to the agent that owns them.
Individual steering behaviors encapsulate the steering logic.
2023-01-14 13:38:58 +01:00
</description>
<tutorials>
</tutorials>
<methods>
<method name="_calculate_steering" qualifiers="virtual">
<return type="void" />
<argument index="0" name="acceleration" type="GSAITargetAcceleration" />
<description>
The calculate_steering function is the entry point for all behaviors. Sets the acceleration with the behavior's desired amount of acceleration.
2023-01-14 13:38:58 +01:00
</description>
</method>
<method name="calculate_steering">
<return type="void" />
<argument index="0" name="acceleration" type="GSAITargetAcceleration" />
<description>
2023-01-14 14:35:47 +01:00
The calculate_steering function is the entry point for all behaviors. Sets the acceleration with the behavior's desired amount of acceleration.
2023-01-14 13:38:58 +01:00
</description>
</method>
</methods>
<members>
<member name="agent" type="GSAISteeringAgent" setter="set_agent" getter="get_agent">
The AI agent on which the steering behavior bases its calculations.
2023-01-14 13:38:58 +01:00
</member>
<member name="is_enabled" type="bool" setter="set_is_enabled" getter="get_is_enabled" default="true">
If false, all calculations return zero amounts of acceleration.
2023-01-14 13:38:58 +01:00
</member>
</members>
<constants>
</constants>
</class>