Added various functions basic math classes. Also enabled math checks only for debug builds.
Added set_scale, set_rotation_euler, set_rotation_axis_angle. Addresses #2565 directly. Added an euler angle constructor for Basis in GDScript and also exposed is_normalized for vectors and quaternions. Various other changes mostly cosmetic in nature.
This commit is contained in:
@@ -601,7 +601,7 @@ MainLoop *test() {
|
||||
print_line(q3);
|
||||
|
||||
print_line("before v: " + v + " a: " + rtos(a));
|
||||
q.get_axis_and_angle(v, a);
|
||||
q.get_axis_angle(v, a);
|
||||
print_line("after v: " + v + " a: " + rtos(a));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user