Discontinued spherical_interpolate_with in Transform3D
This commit is contained in:
parent
c80ea41e3b
commit
c139d9ef7d
4 changed files with 1 additions and 22 deletions
|
|
@ -94,9 +94,7 @@ void Transform3D::set_look_at(const Vector3 &p_eye, const Vector3 &p_target, con
|
|||
origin = p_eye;
|
||||
}
|
||||
|
||||
Transform3D Transform3D::spherical_interpolate_with(const Transform3D &p_transform, real_t p_c) const {
|
||||
/* not sure if very "efficient" but good enough? */
|
||||
|
||||
Transform3D Transform3D::interpolate_with(const Transform3D &p_transform, real_t p_c) const {
|
||||
Transform3D interp;
|
||||
|
||||
Vector3 src_scale = basis.get_scale();
|
||||
|
|
@ -113,15 +111,6 @@ Transform3D Transform3D::spherical_interpolate_with(const Transform3D &p_transfo
|
|||
return interp;
|
||||
}
|
||||
|
||||
Transform3D Transform3D::interpolate_with(const Transform3D &p_transform, real_t p_c) const {
|
||||
Transform3D interp;
|
||||
|
||||
interp.basis = basis.lerp(p_transform.basis, p_c);
|
||||
interp.origin = origin.lerp(p_transform.origin, p_c);
|
||||
|
||||
return interp;
|
||||
}
|
||||
|
||||
void Transform3D::scale(const Vector3 &p_scale) {
|
||||
basis.scale(p_scale);
|
||||
origin *= p_scale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue