Actors pushing another

ApexApex Member, PRO Posts: 56
I have Actors with arc like form, I call them "Wave". They are spawning from center and moving to random directions and they are being proportionally larger, when they are further from center. I have another actor, I call it "PlayersActor". PlayersActor must bounce away when it collides with Wave actor.

I've used collide behavior to PlayersActor. Ticked fixed rotation for both actors. When I start it works fine, but when Players actor goes closer to center collide behavior does not work. WHY ?

Answers

  • sparkaniasparkania Member, PRO Posts: 300
    check that the Density of your Player actor is not greater than your waves. You might be overriding the bounce on collision.
  • ApexApex Member, PRO Posts: 56
    I've made Density of Wave higher than Player actor. It does not changed. Collide works only if Player is very far away from center when Wave is big.
  • ApexApex Member, PRO Posts: 56
    Is density of Actor dependent to its size? I've changed density of Wave to 100, does not work.
  • sparkaniasparkania Member, PRO Posts: 300
    Density of an actor is dependent on how physically dense you want to make it. Size is not relevant by default. (ie a Cloud is bigger than a Car) Default is only 3 for ALL actors regardless of size. I usually only increase this if I am planning on some higher speed collisions.

    It would help us to know:
    1.What commands are you using to move & expand the Waves?
    2.What commands are you using to move your Player?
    3.Do you have a timer somewhere in your Waves which might be causing the delay in the collision?
    4.So you have some other trigger running which is causing your collision to be irrelevant?
    5.Are the Waves that are spawned, spawning in the correct Layer (as it pertains to your collision rule?

    There has to be a reason why your Player is making it through the smaller Waves.
  • ApexApex Member, PRO Posts: 56
    1. I use Move at the speed of random(50, 100) and rotate to position of player with speed 500. To expand it i use constrain attribute height to magnitude(self.position.x - centerx, self.position.y - centery)/10 + minHeight. Same for width

    2. If I press up/down/left/right Player accelerates itself to direction that is need.

    3. No timer

    4. They are spawning front of layer
Sign In or Register to comment.