Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Counting Fluid & Android Export
#3
(15-11-2018, 06:44 PM)josemendez Wrote: Hi,

You're counting how many particles are there in the collider every frame, completely disregarding particle IDs when counting. So if a particle was already inside the collider the previous frame, it will be counted again next frame. That's why the counter will never stop increasing as long as there's any particle inside of it.

There's several solutions for counting particles in the forum, here's one:
http://obi.virtualmethodstudio.com/forum...=collision

As for the pink screen in Android, check what the ADB log says. Your particular device isn't capable of running one or more of the default fluid shaders, so you might have to modify them.

Thank you very much for your fast reply Jose.

Let's put aside the Android issue since I haven't spent much time on that issue, yet.

About counting particles. I have already found that topic and tried the same sample code, but couldn't get it worked. I set the collider but counter is not increasing when particles collide with collider that I've set up.

The only change I made was changing public Collider to public Collider2D, since my game is 2D.

Which part do you think should I edit on the sample code that you've provided to make it work on 2D game?


Thank you.
Reply


Messages In This Thread
Counting Fluid & Android Export - by Tuna.Y - 15-11-2018, 06:39 PM
RE: Counting Fluid & Android Export - by Tuna.Y - 15-11-2018, 08:12 PM
RE: Counting Fluid & Android Export - by Tuna.Y - 15-11-2018, 08:43 PM
RE: Counting Fluid & Android Export - by Tuna.Y - 16-11-2018, 06:24 AM
RE: Counting Fluid & Android Export - by Tuna.Y - 16-11-2018, 09:15 AM
RE: Counting Fluid & Android Export - by Tuna.Y - 16-11-2018, 12:57 PM
RE: Counting Fluid & Android Export - by Tuna.Y - 16-11-2018, 01:58 PM