2 moveable actors but only one to bounce

skippyskippy Member Posts: 106
edited November -1 in Working with GS (Mac)
I'm having some trouble with this guys, here is an example : If there is a bird flying across the screen and a ball gets thrown at it, how can i make the ball bounce off the bird and the bird not deviating from it course. I have played around with constraining the birds motion linear x and y velocity but it still gets pushed by the ball and is not on the same path it started on, I must be doing something wrong :(

Comments

  • synthesissynthesis Member Posts: 1,693
    I think its a matter of restitution settings.

    Another thing you can try is make the bird (if it only flies in a straight line) a non-physics object by unchecking its movable checkbox and set all the physics settings to 0. But have the ball still collide with it. Then move the bird using interpolation on its self.position.X. I believe this will force the ball to bounce but the bird won't react. It may still work with the movable checkbox checked and using a move behavior.

    I haven't tried this myself...but I think it will work.
  • skippyskippy Member Posts: 106
    Thanks Synthesis, the interpolation works well although it won't wrap but at least it doesn't budge when the ball hits it now, i can work around wrap,
    Cheers
  • skippyskippy Member Posts: 106
    Hmmm i played around some more and found that a high density in the bird makes it pretty stable when the balls collide thats with movable checkbox checked and using a move behavior.
Sign In or Register to comment.