Skip to content

Conversation

@t0stiman
Copy link
Collaborator

closes #110

@t0stiman t0stiman linked an issue Aug 18, 2025 that may be closed by this pull request
Comment on lines +39 to +40
var shedCollider = shedVisual.transform.parent.GetComponentsInChildren<MeshCollider>()
.First(collider => collider.sharedMesh == mesh);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong. If there's multiple colliders then we should be instantiating all of them, and if there's only one we should be call GetComponentInChildren so we don't need to run it through Linq.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other collider that's there is for the turntable pit. We already instantiate that elsewhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untitled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The turntable control hut does not have colliders

2 participants