Introduction to Unity: Getting Started – Part 2/2

Mark,

Thanks for the quick response. I went over what you suggested and here is what I came up with.

I’m not sure why it is different, but when I select the objects the in the prefab folder, the Ship is Z: 10, the Asteroid is Z: 12.5976, and the bullet (which I noticed is also on the wrong plane) is Z: 10.423. I ran the game, and the ship Z is still 10, but the asteroids are all at Z: 0, although visually, they are on different planes (although only slightly, and the rotation of some is Z: -180) and the bullet Z is 10 (Same as the ship, but visually it is off). The Sphere Collider component is in the Asteroid object, and the Z axis all says, 0. Yet this doesn’t explain why some asteroids get shot and some don’t (also, the ship runs into some asteroids and some it passes through). So I’ve done something wrong somewhere, but I’m not sure where. I’ve included a screenshot of looking down on the scene to show visually where everything is.

Looking at the sphere colliders also, the ship’s is set to Z: -0.72, the bullet is set to Z: 0, and the asteroid is Z: 0.89. I’ve verified the required inputs on the asteroid are the same, although the Z axis in Transform → Position is different. So I think there is an error there as well.

I’m rehashing the steps I think are were I made a mistake, but I’m still getting the same results. Maybe need to start from scratch.

  1. I verified on the console, “clear on play” is checked, but there were 999+ of that errors, so I cleared, it, ran the game again, and had 999+ of the error within a few seconds.

I’m finding it difficult working on this on my little laptop, I’m going to try to export the project to my iMac, where I have more space to work, and verify everything again. Or I will build the game again tonight (japan time) and see if I can find the error.

Thanks again, I’ll keep working it.

Haole