Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

unity3d - Unity Assets doesn't collision with player, but cubes etc. does

I want to test making games with Unity the first time but I don't get, why the player only collides with normal elements like cubes, planes etc. (so elements, which you can create in unity), but with assets like a floor or something it doesn't work. The player just goes through the asset objects. I'm sure I have to change something at the asset objects, but what?

question from:https://stackoverflow.com/questions/65844270/unity-assets-doesnt-collision-with-player-but-cubes-etc-does

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try adding a suitable type of Collider (ref), the default Unity GameObjects come with Colliders preattached.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...