Help! Wall moves when hit...

hydralisk15hydralisk15 Member Posts: 8
edited November -1 in Working with GS (Mac)
How do i make it where when an object hits a wall the object bounces off in a random direction? i tried doing it but the wall moved too and i dont want that.

Comments

  • SkyMapleSkyMaple Member Posts: 817
    in the wall actor make sure its not movable and has a fixed rotation.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi hydralisk15, go into the wall actor's attributes on the Rules window and uncheck Movable under Physics.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • SkyMapleSkyMaple Member Posts: 817
    gyroscope said:
    Hi hydralisk15, go into the wall actor's attributes on the Rules window and uncheck Movable under Physics.

    :-)

    I beat you! :D
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    SkyMaple said:
    I beat you! :D

    Drat! :-)

    P.S to hydralisk15: small tip: it would help Forum members and yourself (you might get more answers) if you made your thread title a little more descriptive than "Help!". I've changed it to something more descriptive for you.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • hydralisk15hydralisk15 Member Posts: 8
    okay i did that the wall doesnt move, but the object keeps hitting the wall and wont truely bounce in any direction
  • hydralisk15hydralisk15 Member Posts: 8
    it did help a little bit but it still isnt bouncing off its like, its attached to the wall, if u catch my drift.
  • DrGlickertDrGlickert Member Posts: 1,135
    Turn off the friction (set it to 0) on the wall.

    Restitution works like this;

    0 to 1 to 2
    0 means that it won't bounce at all.
    1 means that it will bounce back to the original place in which it started
    2 means that it will bounce twice as far as where it started (be careful with this as it bounces twice as high EVERY TIME it bounces).

    Turn the restitution on the ball to whatever you want; 0, .3, .7, 1, 1.4, etc.

    Then, the ball will bounce as you want it to. (you may want to set friction to 0 on the ball too).

    Good luck
  • hydralisk15hydralisk15 Member Posts: 8
    thanks that did help but its like its rotating and its twitching like really fast but its still stuck to the wall. restitution is set to 2 on each and friction is also on 0 for each and density is 5 for the ball. i have like the walls around it and i want the ball(s) to bounce around inside but its like stuck against whatever wall it decides to move to. (i have the movement set to random)
  • hydralisk15hydralisk15 Member Posts: 8
    its like stuck too the wall and wont move after it hits the wall
  • IncinIncin Member Posts: 40
    Just to be sure do you have the gravity properly configed?
  • hydralisk15hydralisk15 Member Posts: 8
    possible im not entirely sure how to work that. x and y is 0 thats all i know lol
  • IncinIncin Member Posts: 40
    Yeah go to the attributes on the scene and fix that to like 400-500 ish anywhere between those values will be fine i usually go with 400. And that is on the Y so try y=400 Make sure you do this on the scene as a whole.
  • hydralisk15hydralisk15 Member Posts: 8
    Thanks that actually helped a lot!
  • IncinIncin Member Posts: 40
    No problem glad I could help. Let me know if any other problems pop up I will try and help the best I can.
Sign In or Register to comment.