How to increase its energy gauge by interactions between two objects (collision detection)

Hello!

I’m looking to create a game via TD, but I’m having trouble understanding how to create the basic interaction:

  • I would like that when a white circle (which follows my hands via a Kinect 2.0) meets a specific object (say a cube) my silhouette is filled with a fluid (say 10% per cube).
  • And when I close my hand, some of this fluid throws itself through it like a projectile (and thus leaves the silhouette).

I have to use a collision detector, which counts the number of cubes hit, but I don’t know how to do it… would someone have an idea, tuto, or sketch to explain it to me?
(by the way, I don’t know much about python…)

thanks everyone!

I already have the white circles that follow my hands, and a clean silhouette, but the interactions is hard to have… :slight_smile:

If you’re using Bullet then you could use the total_collisions channel on the Bullet Solver CHOP to get the total collisions for a specific actor/body (ie. your white circle).