Walls that are walls.... real walls...

PixelPunPixelPun Member Posts: 324
edited May 2012 in Working with GS (Mac)
Hey guys... Well got another problem.. it is one I have kinda lived with in the past... But I really need it to work now. This is what I got:

I made a cup with constrain attributes that have 2 sides, so that you can move it and catch stuff inside. The problem is that if you move the cup too fast the item that the cup holds passes through the walls of the cup. I have the density high... and I have a collide behavior on the item actor... How to I stop it from passing though the walls and stay inside the cup?

As always thanks!
Rob

Best Answer

  • MarkOnTheIronMarkOnTheIron Posts: 1,447
    edited May 2012 Accepted Answer
    You can add a rule that when the actor is inside the cup it will be constrained to the cup position so you can avoid the collisions.

    It will add other constraints and could hit the performance of the game but it should work.

Answers

  • old_kipperold_kipper Member Posts: 1,420
    try thicker walls....
  • PixelPunPixelPun Member Posts: 324
    That didn't matter the actor still passes through.
  • theCodeMonsterstheCodeMonsters Member Posts: 359
    Rule:
    if actor collides with wall, then move in opposite direction or set velocity to 0. Depending on what you want to happen.
  • PixelPunPixelPun Member Posts: 324
    It works... when the cup is slowly moving around... but if you have to make quick motions... walls still don't stop the actors that are inside.
  • PixelPunPixelPun Member Posts: 324
    Yeah... I was looking for the cup to fill up so you have to keep the actors inside while catching other actors... I guess it doesn't work...? It was just something I was playing around with anyhow.. o well.
Sign In or Register to comment.