Jump to content

detect point color and form certain shap


Tong Le

Recommended Posts

Hey there,

I wanna use box copy to particles which will form the tetris piece.

scene description:

1. grid in the sky will generate points which drop down to floor with random color

2. copy box to the particles

3. if the close box has same color, they will stick to each other and try to stick other same color to form a tetris piece

4. if they don't form a tetris piece, it will die when it land to floor.

How can i get glue or stick boxes by their location and color?

Thanks, and hope you can understand what i am talking about. Sorry for my bad English. :P

Link to comment
Share on other sites

If the resulting shape is meant to be one of the tetris shapes, then you need to make sure that the particles are all a unit length away from each other at the moment that you copy the boxes. This way, when you copy a unit-sized box to the particles, they won't overlap. Also, you'll need to orient all the particles so that the boxes are facing the same direction.

Another way to do this might be to use DOPs instead of particles. Check out the Katamari Challenge on odForce.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...