Collision? ARRRRGH!

FlightfreakAppsFlightfreakApps Member Posts: 20
edited November -1 in Working with GS (Mac)
Okay. I have a block and a wall. The block and the wall both have the restitution of 0. The block is set to collide with the wall. WHY DOES IT GO RIGHT THROUGH? I don't get it! Only when I make the walls 'Movable' do they actually recognize that they are colliding with the wall. I have deleted every other actor in my game out of the scene, but still nothing seems to work. Any help will be greatly appreciated.

Comments

  • old_kipperold_kipper Member Posts: 1,420
    try making the wall thicker as a first fix, then try changing density...
  • FlightfreakAppsFlightfreakApps Member Posts: 20
    Okay, changing the density kinda helped. You control my actor by dragging. You can drag the actor into the wall, but when you let go, it teleports back out. I tried making it so when you mouse over the wall, it turns the 'Touching' attribute to 0, but if you moved the actor fast enough you can still get through the wall. I'll probably try starting the game from scratch. Thanks for your help.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah the problem is cause your controllign it by dragging. WHen your constraing to the mouse all collisions are ignored.

    There was a workaround posted by scitunes i think it was, instead of useing a constrain to mouse, he used a timer every 0.1 seconds or something like that accerelate to mouse. Then collosiions will work.
  • FlightfreakAppsFlightfreakApps Member Posts: 20
    Thanks, John! I'll try that.
  • FlightfreakAppsFlightfreakApps Member Posts: 20
    Okay, I tried the workaround you mentioned... It doesn't seem to work. Can you link me to SciTune's tutorial if you could find it? I searched for it but it doesn't seem to exist. If you know how the workaround is supposed to work, could you look at this screenshot:

    http://tinypic.com/r/fucsus/7

    And can you correct me if I'm wrong? THank you very much for your help.

    PS: In the 'Move To' attribute, X is Devices.Mouse.Position.X and Y is Devices.Mouse.Position.Y.
  • FlightfreakAppsFlightfreakApps Member Posts: 20
    I dug around and seem to have found SciTunes' tutorial. Thanks for pointing me in the right direction.
  • andrewm2211andrewm2211 Member Posts: 341
    I had some serious collision in the past myself, 'change size' and 'move to' both screwed me up
Sign In or Register to comment.