Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool Ball_Table(Model model1, Matrix world1)
- {
- for (int meshIndex1 = 0; meshIndex1 < model1.Meshes.Count; meshIndex1++)
- {
- BoundingSphere sphere1 = model1.Meshes[meshIndex1].BoundingSphere;
- sphere1 = sphere1.Transform(world1);
- if(table_box.Intersects(sphere1))
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement