Capsule Collider Question?

Hello guys,

I am very new to Unity less than two weeks so far, and have been using the book “Beginning Game Development with Unity 4” as my introduction to the program. The book is not without it’s problems though.

So, I got to the part about Capsule Colliders around trees - and from information that I found around the Unity docs and on the forums, and the book - I think that I got the capsule collider around the tree, saved that as a prefab then went through the “terrain” and put the prefab tree into the scene. This piccy shows both the original tree with the collider around it and the prefabbed tree. Does this look right?

The next question I should ask is how do I test that the collider is actually working? I tried hitting the “Play” button and using the Right mouse button and the “WASD” keys to move around the scene and I went through it. Is that supposed to happen or have I buggered up the process?

Cheers.

Moving around in the scene view doesn’t have any collision nor would that be desirable. Put some character in the scene (such as the standard first person controller asset) and use that to move around in the game view while in play mode.

–Eric

2 Likes

Like I said I am very new to this Unity caper and wasn’t sure about how or when the colliders worked. The book I was using suddenly stopped talking about them - and one forum response about colliders in his last step said, “Place a few trees, and you should be ready to go!”. So I thought that meant press the Play and it would work.

So, thanks greatly for your reply it has certainly straightened out that problem :sunglasses:. Man, I can’t wait till I get to putting a first person character in the scene - I love this Unity program. Much better than trying to do 3D in GameMaker: Studio.

Cheers :).