You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix Vector3 slerp method normalizing cross product
(cherry picked from commit 416a7d06de)
This commit is contained in:
@@ -223,7 +223,7 @@ Vector3 Vector3::slerp(const Vector3 &p_b, real_t p_t) const {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
real_t theta = angle_to(p_b);
|
real_t theta = angle_to(p_b);
|
||||||
return rotated(cross(p_b), theta * p_t);
|
return rotated(cross(p_b).normalized(), theta * p_t);
|
||||||
}
|
}
|
||||||
|
|
||||||
real_t Vector3::distance_to(const Vector3 &p_b) const {
|
real_t Vector3::distance_to(const Vector3 &p_b) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user