Physics Question

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
Hey all,

I have a ball falling from the top of the screen. It will bounce down various platforms on the way down. When the ball collides with the platforms (if it is falling fast enough) the platforms moves down on the Y Axis a few pixels. I changed the density on the platforms to 10k but they still move. The restitution and friction is at 0. Unchecking moveable isn't an option, as for some game instances it needs to.

What settings do I need to tweak to make the platform not move at all when the ball collides with it?

Thanks in advance.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    try constraining the y when u dont want it to move down
  • bluebyu25bluebyu25 Member Posts: 500
    JohnPapiomitis said:
    try constraining the y when u dont want it to move down

    Ended up doing that but I wanted to see if I could avoid a constrain.....what I finally settled on was just taking the collide behavior out completely and just told the ball to bounce if it overlapped or collided with a platform via changing its self.velocity.y to random (40,130). This way the ball still bounces but the platforms do not move because there is no collide rule.
Sign In or Register to comment.