• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Sep 30, 2013 at 02:59 PM by Jamora for the following reason:

Duplicate Question of http://answers.unity3d.com/questions/516001/detecting-a-string-of-collisions.html

avatar image
0
Question by Axine · Sep 30, 2013 at 01:43 PM · c#collisioncollidercube

Remove objects if 3 or more of them are colliding

Hello guys!
How can I destroy the cubes, if only 3 or more of them are colliding? ■■■ for example.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ShadoX · Sep 30, 2013 at 03:17 PM 0
Share

Well, you'll have to detect if 3 or more are connected in some way. For example, try to save a list of all objects a cube is colliding with at a given moment and then try to check if those cubes in the list are also colliding with something. (while making sure that you don't end up with a endless loop checking all cubes constantly)

0 Replies

  • Sort: 

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Cube with colliders ignores other colliders, why? 1 Answer

Instantiate 1 object after 2 objects collide. ( C# ) 1 Answer

How to perform one pass collision detection on many objects? 2 Answers

How to collide with NGUI element? 1 Answer

Problem with objects colliding and IsSleeping (C#) 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges