mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Rename Transform to Transform3D in core
This commit is contained in:
		
							parent
							
								
									b80494e633
								
							
						
					
					
						commit
						de3f6699a5
					
				
					 257 changed files with 1697 additions and 1702 deletions
				
			
		|  | @ -65,7 +65,7 @@ void MeshEditor::_notification(int p_what) { | |||
| } | ||||
| 
 | ||||
| void MeshEditor::_update_rotation() { | ||||
| 	Transform t; | ||||
| 	Transform3D t; | ||||
| 	t.basis.rotate(Vector3(0, 1, 0), -rot_y); | ||||
| 	t.basis.rotate(Vector3(1, 0, 0), -rot_x); | ||||
| 	rotation->set_transform(t); | ||||
|  | @ -85,7 +85,7 @@ void MeshEditor::edit(Ref<Mesh> p_mesh) { | |||
| 	if (m != 0) { | ||||
| 		m = 1.0 / m; | ||||
| 		m *= 0.5; | ||||
| 		Transform xform; | ||||
| 		Transform3D xform; | ||||
| 		xform.basis.scale(Vector3(m, m, m)); | ||||
| 		xform.origin = -xform.basis.xform(ofs); //-ofs*m;
 | ||||
| 		//xform.origin.z -= aabb.get_longest_axis_size() * 2;
 | ||||
|  | @ -117,16 +117,16 @@ MeshEditor::MeshEditor() { | |||
| 	viewport->set_msaa(Viewport::MSAA_2X); | ||||
| 	set_stretch(true); | ||||
| 	camera = memnew(Camera3D); | ||||
| 	camera->set_transform(Transform(Basis(), Vector3(0, 0, 1.1))); | ||||
| 	camera->set_transform(Transform3D(Basis(), Vector3(0, 0, 1.1))); | ||||
| 	camera->set_perspective(45, 0.1, 10); | ||||
| 	viewport->add_child(camera); | ||||
| 
 | ||||
| 	light1 = memnew(DirectionalLight3D); | ||||
| 	light1->set_transform(Transform().looking_at(Vector3(-1, -1, -1), Vector3(0, 1, 0))); | ||||
| 	light1->set_transform(Transform3D().looking_at(Vector3(-1, -1, -1), Vector3(0, 1, 0))); | ||||
| 	viewport->add_child(light1); | ||||
| 
 | ||||
| 	light2 = memnew(DirectionalLight3D); | ||||
| 	light2->set_transform(Transform().looking_at(Vector3(0, 1, 0), Vector3(0, 0, 1))); | ||||
| 	light2->set_transform(Transform3D().looking_at(Vector3(0, 1, 0), Vector3(0, 0, 1))); | ||||
| 	light2->set_color(Color(0.7, 0.7, 0.7)); | ||||
| 	viewport->add_child(light2); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aaron Franke
						Aaron Franke