Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthornoicreC
    • CommentTimeJun 8th 2012
     
    I am trying to have collision with moving objects, but as soon as I move one of my objects(using drag and drop for testing), the particles simply fall through the object, as long as it's moving.
    These are the lines of code I use for the collision:

    emitter.addAction( new CollisionZone( new DisplayObjectZone(circleMC, renderer), 0.3) );
    emitter.addAction( new Accelerate( 0, changePspeed ) );
    emitter.addAction( new SpeedLimit( changePspeed ) );


    I've tried a lot, but I just couldn't get it to work; no matter what, the particles keep falling through the object as long as you're dragging it around. If anyone has a solution, please!
    • CommentAuthorRichard
    • CommentTimeOct 29th 2012 edited
     
    The collision code in the CollisionZone copes with the situation where the particles move but doesn't cope with the situation where the zone moves. It will need improving to handle that situation.