Collision Detection

fadelakinfadelakin Member Posts: 13
edited November -1 in Working with GS (Mac)
I need some help with collision detection. I have a ship the moves from left to right and back when you touch it. The ship has a collide attribute to bounce against the wall. The wall has the same attribute except its against the ship. When I run it, the ship doesn't collide, it just goes through the sides. Anyone got an idea how to fix it?

Comments

  • micksolomicksolo Member Posts: 264
    Try removing the bounce collide rule from the wall. You could also try making the wall non moveable.

    Also check the restitution settings in the ship and make sure it's set to something greater than 0.
  • AppsRacKAppsRacK Member Posts: 346
    If your trying to move the ship by constraining it to the mouse.position it wont detect collision.

    -drahc
  • micksolomicksolo Member Posts: 264
    there is a workaround though, using magnitude..I did it one of my games but I can't remember where I found it!
  • fadelakinfadelakin Member Posts: 13
    @micksolo I tried what you said, it didn't work.

    @AppsRack you move the ship by touching on it. I constrained the position on the Y by 75 and I constrained it on the X with a custom attribute
  • fadelakinfadelakin Member Posts: 13
    Thanks. I'll check it out
Sign In or Register to comment.