Simple wall-actor issue

master200012master200012 Member Posts: 372
edited November -1 in Working with GS (Mac)
I know this should be easy, but...

I have an actor that moves in a certain direction (stacked, not additive) and is not affected by gravity (it is off.) It also collides with the wall. However, when it hits the wall at any angle, it keeps drilling into it until it reaches the end of the wall on one side (the wall can't move or be destroyed.)

How come it doesn't just bounce off at the normal angle? Please Help!

Comments

  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    uhm, go under physics and check that the collsion shape is set to rectangle because if it is set as a circle it will bounce off in the wrong direction. If this isn't the issue it must be something you have mistaken in the programming.

    Post some screenshots. ;)

    Giacomo
  • old_kipperold_kipper Member Posts: 1,420
    objects at very high speeds sometime intersect with other objects before they get a chance to bounce off. The first thing to do is to try pushing up the density of the objects and then if that doesn't work reduce the speed. I have also found the thicker wall sometimes change effects. Not sure why, but I've fixed problems with it.

    hope that helps

    kipper
  • master200012master200012 Member Posts: 372
    Uhh...

    It's not the collision shape.

    How do you post screenshots?
  • master200012master200012 Member Posts: 372
    Oh, and the speed is low and I've tried what you've said.

    Nothing doing.
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    upload them to http://imageshack.us/ and then post the link (fastest way) ;)

    Giacomo
  • master200012master200012 Member Posts: 372
    Well, how do you take a screenshot?
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    oh, just press cmd+shift+3
    or press cmd+shift+4+space bar if you want to take a screenshot only of a certain application.

    Giacomo

    EDIT: Do you need the actor to rotate? if not just set fixed rotation unduer the physics section and it wont be able to rotate any more.
  • master200012master200012 Member Posts: 372
    Oh, right, I've claimed copyright on everything there already. :P
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    hahha, don't worry ;)
    This might be completely irrelivant, but have you tried setting the restitution under phisics to 0?
    Try that.

    BTW what is the motion line rule about?

    Giacomo
  • master200012master200012 Member Posts: 372
    I was trying to find a way to make it bounce in the opposite direction, but it's not working.

    Any other suggestions?
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    If you want you can send it over to me and i'll have a look at it tomoroow morning. ;)
    giacomopoppi@gmail.com

    Giacomo
  • master200012master200012 Member Posts: 372
    Actually, I solved the problem and made everything work.

    Thanks for all your help!
Sign In or Register to comment.