2023-01-14 13:38:58 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-08-26 22:41:21 +02:00
|
|
|
<class name="GSAITargetAcceleration" inherits="Reference" version="4.1">
|
2023-01-14 13:38:58 +01:00
|
|
|
<brief_description>
|
2023-01-14 14:31:39 +01:00
|
|
|
A desired linear and angular amount of acceleration requested by the steering system.
|
2023-01-14 13:38:58 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
A desired linear and angular amount of acceleration requested by the steering system.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_scaled_accel">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="accel" type="GSAITargetAcceleration" />
|
|
|
|
<argument index="1" name="scalar" type="float" />
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Adds accel's components, multiplied by scalar, to this one.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_magnitude">
|
|
|
|
<return type="float" />
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Returns the squared magnitude of the linear and angular components.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_magnitude_squared">
|
|
|
|
<return type="float" />
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Returns the squared magnitude of the linear and angular components.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_zero">
|
|
|
|
<return type="void" />
|
|
|
|
<description>
|
2023-01-14 14:31:39 +01:00
|
|
|
Sets the linear and angular components to 0.
|
2023-01-14 13:38:58 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="angular" type="float" setter="set_angular" getter="get_angular" default="0.0">
|
2023-01-14 14:31:39 +01:00
|
|
|
Angular acceleration
|
2023-01-14 13:38:58 +01:00
|
|
|
</member>
|
|
|
|
<member name="linear" type="Vector3" setter="set_linear" getter="get_linear" default="Vector3( 0, 0, 0 )">
|
2023-01-14 14:31:39 +01:00
|
|
|
Linear acceleration
|
2023-01-14 13:38:58 +01:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|