mirror of
https://github.com/Relintai/regression-test-project.git
synced 2024-11-14 10:27:53 +01:00
Transform3D changes (#55)
This commit is contained in:
parent
627fe5dd9f
commit
32f9b5e1c9
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,3 +12,5 @@ logs/
|
|||||||
#.godot/
|
#.godot/
|
||||||
.godot/imported/
|
.godot/imported/
|
||||||
.godot/editor
|
.godot/editor
|
||||||
|
.godot/shader_cache/
|
||||||
|
shader_cache/
|
||||||
|
@ -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)
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user