Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | im-juliecorn |
Or better, why does this not work:
var default_rotation_basis = Basis(Vector3(1, 0, 0), Vector3(0, 0.949972, -0.312335), Vector3(0, 0.312335, 0.949972))
var default_transform = Transform3D(default_rotation_basis, self.get_position())
transform = transform.interpolated_with(default_transform, 0.5)
What Im trying to do is interpolate between two basis’ of a camera, the default one default_rotation_basis
that I set manually and the current transform.basis
, Ive tried using lerp()
but that doesnt work for me and using quaternions and slerp
is supposed to cause gimbal lock. Any ideas are appreciated and welcome. Have a good one!