Jump to content

how to do emitter particles collide with static object


likon
 Share

Recommended Posts

Hi

 

I want to create a particles that burst and collide with a floor (static body object)

I've tried different thing bot non of that worked.

How I can do that. Can someone provide some simple example?

 

Cheers,

Robert

Link to comment
Share on other sites

I got something like this, and it doesn't work.

this.emitter.makeParticles('ball');
this.emitter.gravity = 1200;
this.emitter.minParticleSpeed.set(-200, -200);
this.emitter.maxParticleSpeed.set(600, 600);
this.blow = false;

this.physics.arcade.enable(this.platform);
this.physics.arcade.collide(this.emitter, this.platform);
//this.platform.body.immovable = true;
this.platform.body.allowGravity = false;

 

any idea how to make it collide with the platform?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...