Skip to content

Commit 4807474

Browse files
NytraBanane9
authored andcommitted
Fix grid world template not working
1 parent 7119e48 commit 4807474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CommunityBugFixCollection/BetterGridWorldPreset.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ private static bool Prefix(World w)
5454
attachedModel.material.Smoothness.Value = 0f;
5555

5656
var boxCollider = ground.AttachComponent<BoxCollider>();
57-
boxCollider.Size.DriveFrom(attachedModel.mesh.Size);
57+
var swizzle = ground.AttachComponent<Float2ToFloat3SwizzleDriver>();
58+
swizzle.Source.Target = attachedModel.mesh.Size;
59+
swizzle.Target.Target = boxCollider.Size;
5860
boxCollider.SetCharacterCollider();
5961

6062
return false;

0 commit comments

Comments
 (0)