diff options
| author | tagcup | 2018-05-11 20:14:39 -0400 |
|---|---|---|
| committer | tagcup | 2018-05-12 13:05:04 -0400 |
| commit | ed7aadcd87a64cde70febc8ee313860e8c67dcaf (patch) | |
| tree | 1c9a682a33463feff010a436caf852d4ad4fdcde /doc/classes/Vector3.xml | |
| parent | 81b1d3c846de263cf843e9e0e9d7c0c0a94f65c8 (diff) | |
| download | godot-ed7aadcd87a64cde70febc8ee313860e8c67dcaf.tar.gz godot-ed7aadcd87a64cde70febc8ee313860e8c67dcaf.tar.zst godot-ed7aadcd87a64cde70febc8ee313860e8c67dcaf.zip | |
Add SLERP to Vector{2,3}, optimize Quat's Vector3 rotation.
Also even out Basis and Quat APIs a little.
Diffstat (limited to '')
| -rw-r--r-- | doc/classes/Vector3.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 0ffb5603c..827033e48 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -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> |
