This code compiles fine in godot 3, but gives this error in godot 4:
Function "Transform()" not found in base self.
const ROTATION_BASES = {
X_NEGATIVE_Y_LEFT = Transform(
Vector3(.644, 0, -.765),
Vector3(-.572, .664, -.481),
Vector3(.508, .748, .428),
Vector3(145.2, 213.208, 122.3)),
X_NEGATIVE_Y_MIDDLE = Transform(
Vector3(.081, 0, -.997),
Vector3(-.745, .664, -.06),
Vector3(.662, .748, .053),
Vector3(188.398, 212.29, 15.36)),
X_NEGATIVE_Y_RIGHT = Transform(
Vector3(.762, 0, -.648),
Vector3(-.484, .644, -.57),
Vector3(.43, .748, .506),
Vector3(122.732, 212.96, 144.419))
}
my base class is:
extends Camera3D
any idea whats going on?
Thanks!