You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Add is_zero_approx methods to Vector{2,3}
This commit is contained in:
@@ -113,7 +113,7 @@ PhysicalBone *SkeletonEditor::create_physical_bone(int bone_id, int bone_child_i
|
||||
bone_shape->set_transform(capsule_transform);
|
||||
|
||||
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