Question by
spideyrnan · May 13, 2019 at 01:17 AM ·
gameobjectcollidermeshcollidersgame object
Is it possible to make a game object's mesh fit its collider?
Title pretty much says it all. I'm in a weird situation where for some reason, after opening my unity project again, all my game object's meshes are in a different position than their colliders, which are in the right positions. I've attached some photos of the scene and inspector windows.
Comment
That looks like shearing - being a child of something with a funny xyz scaling. I'd rejigger the set-up to avoid it.
Answer by tormentoarmagedoom · May 13, 2019 at 08:09 AM
Yes, you need to use the component MeshCollider!
Bye :D
But they're not using a hand-made mesh. These are the cube meshes that come with Unity. Look at the $$anonymous$$eshFilter component in the picture.