Help Destroy particle on collision - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Help Destroy particle on collision (/thread-161.html) Pages:
1
2
|
RE: Destroy particle on collision - Jaydena - 04-05-2018 (03-05-2018, 08:32 AM)josemendez Wrote: You could deactivate collisions and just iterate over all particles positions instead, yes. I'm building on windows targeting windows. I haven't done extensive tests besides the deactivating and reactivating the script which seems to cause the slowdown. Deactivating it resumes back up to normal fps and reactivating causes the slowdown once the particles build back up. Could you provide me with a code snippet to do this? im assuming its a for(all particles){ if particle.x > num { particle.life = 0 }} Just not too sure on the specific code. Thank you! RE: Destroy particle on collision - KalidorH8r - 26-10-2018 (29-09-2017, 12:30 PM)Kalidor Wrote: i'am what made you think this was ok RE: Destroy particle on collision - shanu12joshi - 18-10-2021 Hey, I want to kill particles that collide with the ground!! I tried the above approach but it's not working !!Please helppp RE: Destroy particle on collision - josemendez - 18-10-2021 (18-10-2021, 08:18 AM)shanu12joshi Wrote: Hey, I want to kill particles that collide with the ground!! I tried the above approach but it's not working !!Please helppp Hi! The approach outlined in this thread is valid. What have you tried exactly? Can you post your code? I can't do much to help if you don't specify what have you tried and how it fails to work. |