Transform: Fixed bug in euler to quaternion conversions | Static_Array: Added overload for operator []= | Widgets: Added changed bool to textfields
This commit is contained in:
@@ -130,7 +130,7 @@ quaternion_to_euler :: (q: Quaternion) -> yaw: float, pitch: float, roll: float
|
||||
cosy_cosp := 1.0 - 2.0 * (q.y * q.y + q.z * q.z);
|
||||
yaw = atan2(siny_cosp, cosy_cosp);
|
||||
|
||||
return pitch, yaw, roll;
|
||||
return yaw, pitch, roll;
|
||||
}
|
||||
|
||||
set_rotation :: (e: *Entity, orientation: Quaternion, calculate_matrix: bool = true) {
|
||||
|
||||
Reference in New Issue
Block a user