You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add is_zero_approx methods to Vector2, 3, and 4
This commit is contained in:
@@ -433,7 +433,7 @@ PhysicalBone3D *Skeleton3DEditor::create_physical_bone(int bone_id, int bone_chi
|
||||
|
||||
/// Get an up vector not collinear with child rest origin
|
||||
Vector3 up = Vector3(0, 1, 0);
|
||||
if (up.cross(child_rest.origin).is_equal_approx(Vector3())) {
|
||||
if (up.cross(child_rest.origin).is_zero_approx()) {
|
||||
up = Vector3(0, 0, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user