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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user