Transform3D changes (#55)

This commit is contained in:
Rafał Mikrut 2021-06-16 16:41:51 +02:00 committed by GitHub
parent 627fe5dd9f
commit 32f9b5e1c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

2
.gitignore vendored
View File

@ -12,3 +12,5 @@ logs/
#.godot/ #.godot/
.godot/imported/ .godot/imported/
.godot/editor .godot/editor
.godot/shader_cache/
shader_cache/

View File

@ -79,7 +79,7 @@ func parse_and_return_objects(method_data: Dictionary, name_of_class: String, de
elif type == TYPE_STRING_ARRAY: elif type == TYPE_STRING_ARRAY:
arguments_array.push_back(PackedStringArray([])) arguments_array.push_back(PackedStringArray([]))
elif type == TYPE_TRANSFORM3D: elif type == TYPE_TRANSFORM3D:
arguments_array.push_back(ValueCreator.get_transform()) arguments_array.push_back(ValueCreator.get_transform3D())
elif type == TYPE_TRANSFORM2D: elif type == TYPE_TRANSFORM2D:
arguments_array.push_back(ValueCreator.get_transform2D()) arguments_array.push_back(ValueCreator.get_transform2D())
elif type == TYPE_VECTOR2: elif type == TYPE_VECTOR2:
@ -268,7 +268,7 @@ func return_gdscript_code_which_run_this_object(data) -> String:
return_string += ", " return_string += ", "
return_string += "])" return_string += "])"
elif type == TYPE_TRANSFORM3D: elif type == TYPE_TRANSFORM3D:
return_string = "Transform(" return_string = "Transform3D("
return_string += return_gdscript_code_which_run_this_object(data.basis) return_string += return_gdscript_code_which_run_this_object(data.basis)
return_string += ", " return_string += ", "
return_string += return_gdscript_code_which_run_this_object(data.origin) return_string += return_gdscript_code_which_run_this_object(data.origin)

View File

@ -102,12 +102,12 @@ func get_aabb_string() -> String:
return "AABB(" + get_vector3_string() + ", " + get_vector3_string() + ")" return "AABB(" + get_vector3_string() + ", " + get_vector3_string() + ")"
func get_transform() -> Transform: func get_transform3D() -> Transform3D:
return Transform(get_vector3(), get_vector3(), get_vector3(), get_vector3()) return Transform3D(get_vector3(), get_vector3(), get_vector3(), get_vector3())
func get_transform_string() -> String: func get_transform3D_string() -> String:
return "Transform(" + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ")" return "Transform3D(" + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ")"
func get_transform2D() -> Transform2D: func get_transform2D() -> Transform2D: