Add SLERP to Vector{2,3}, optimize Quat's Vector3 rotation.

Also even out Basis and Quat APIs a little.
This commit is contained in:
tagcup
2018-05-11 20:14:39 -04:00
parent 81b1d3c846
commit ed7aadcd87
11 changed files with 158 additions and 17 deletions

View File

@@ -210,6 +210,18 @@
<description>
</description>
</method>
<method name="slerp">
<return type="Vector3">
</return>
<argument index="0" name="b" type="Vector3">
</argument>
<argument index="1" name="t" type="float">
</argument>
<description>
Returns the result of SLERP between this vector and "b", by amount "t". "t" should be a float of 0.0-1.0, a percentage of how far along the interpolation is.
Both vectors need to be normalized.
</description>
</method>
<method name="slide">
<return type="Vector3">
</return>