• Godot Help
  • beta9 quaternion(vector3.zero) has changed into?

the code using quaternion(vector3.zero) doesnt compile in beta9
does anyone know how to fix it? what API changes have been made?

  • Oh, I see. Yeah, you can do this.

    var angle = Quaternion.from_euler(Vector3.ZERO)

You need to pass an axis and angle. If you just want zero you can do this.

var something = Quaternion()
  • DJM replied to this.

    cybereality hmm , i cant get it working, i need euler angles.
    ill ask erich to look into it, i suck at coding 😉

    Oh, I see. Yeah, you can do this.

    var angle = Quaternion.from_euler(Vector3.ZERO)
    • DJM replied to this.