2 moveable actors but only one to bounce
skippy
Member Posts: 106
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
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.
Cheers