Skip to content

Commit 449fa0c

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.0] [UUM-70734] Fix for Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
1 parent 89543bc commit 449fa0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.render-pipelines.universal/Runtime/2D/Shadows/ShadowProvider/Providers/ShadowShape2DProvider_Collider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void CalculateShadows(Collider2D collider, ShadowShape2D persistantShape
9191

9292
// Fetch collider space.
9393
var attachedBody = collider.attachedRigidbody;
94-
var colliderSpace = attachedBody ? attachedBody.transform.localToWorldMatrix : Matrix4x4.identity;
94+
var colliderSpace = attachedBody ? attachedBody.localToWorldMatrix : Matrix4x4.identity;
9595

9696
// If the shape hash has changed, grab a new potential visible geometry group.
9797
var shapeHash = collider.GetShapeHash();

0 commit comments

Comments
 (0)