Why isn't my 3D collision detection working?
问题 I have several objects in my world, there are three primary types. The first is self, which is the player, the player does not move, but they do rotate. The second are bullets which fly out away from the user in a straight line. And the third are targets, these just sit somewhere and wait to be hit. Here's the code I'm using to do collision detection and it isn't working: foreach (GameObject go in bullets) { float goRadius = go.Model.Meshes.Sum((x) => x.BoundingSphere.Radius) * go.Scale;