Fix BuildingBlockCreator
This commit is contained in:
		
							parent
							
								
									5fb268ac5d
								
							
						
					
					
						commit
						c584dd1f92
					
				| @ -4,8 +4,8 @@ namespace Gmtk24 { | ||||
|     public partial class BuildingBlockCreator : Node3D { | ||||
|         [Export] | ||||
|         public Node3D TrenchbroomMap; | ||||
|         [Export] | ||||
|         public PackedScene BuildingBlockPrefab; | ||||
|         // [Export] | ||||
|         // public PackedScene BuildingBlockPrefab; | ||||
|         [Export] | ||||
|         public ShaderMaterial BuildingBlockMaterial; | ||||
|         [Export] | ||||
| @ -14,7 +14,7 @@ namespace Gmtk24 { | ||||
|         public override void _Ready() { | ||||
|             var children = TrenchbroomMap.FindChildren("*_buildingblock"); | ||||
|             foreach (var buildingBlockStaticBody in children) { | ||||
|                 var buildingBlock = BuildingBlockPrefab.Instantiate(); | ||||
|                 var buildingBlock = new RigidBody3D(); | ||||
| 
 | ||||
|                 var smallMesh = (MeshInstance3D)buildingBlockStaticBody.GetChild<MeshInstance3D>(0).Duplicate(); | ||||
|                 smallMesh.Scale = Vector3.One * BuildingBlockScale; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user