mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
50 lines
1.5 KiB
XML
50 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="GSAITargetAcceleration" inherits="Reference" version="4.2">
|
|
<brief_description>
|
|
A desired linear and angular amount of acceleration requested by the steering system.
|
|
</brief_description>
|
|
<description>
|
|
A desired linear and angular amount of acceleration requested by the steering system.
|
|
</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>
|
|
Adds accel's components, multiplied by scalar, to this one.
|
|
</description>
|
|
</method>
|
|
<method name="get_magnitude">
|
|
<return type="float" />
|
|
<description>
|
|
Returns the squared magnitude of the linear and angular components.
|
|
</description>
|
|
</method>
|
|
<method name="get_magnitude_squared">
|
|
<return type="float" />
|
|
<description>
|
|
Returns the squared magnitude of the linear and angular components.
|
|
</description>
|
|
</method>
|
|
<method name="set_zero">
|
|
<return type="void" />
|
|
<description>
|
|
Sets the linear and angular components to 0.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="angular" type="float" setter="set_angular" getter="get_angular" default="0.0">
|
|
Angular acceleration
|
|
</member>
|
|
<member name="linear" type="Vector3" setter="set_linear" getter="get_linear" default="Vector3( 0, 0, 0 )">
|
|
Linear acceleration
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
</constants>
|
|
</class>
|