Overlap and Collide Wont Work!? Frustrated...

mikelowemikelowe Member Posts: 177
edited November -1 in Working with GS (Mac)
i have a game where the enemy actor interpolates, and there is a crosshair actor that is moved with a joystick. the enemy also moves with acceleration. For some reason, i can not get it to register when the two actors overlap. can someone help me out?

Comments

  • mikelowemikelowe Member Posts: 177
    Thank you very much for your reply. I will try this. sounds like a good idea
  • ORBZORBZ Member Posts: 1,304
    Make sure that physics.movable is on for at least one of the actors. As an optimization the physics engine assumes that two non-movable actors will never collide and so ignores them for collision checks.

    Checking the magnitude is also a viable option depending on your needs, I would avoid using a constrain though for magnitude, every single time the thing moves the constraint will be dispatching an event. Better to use a 0.1s timer and check the magnitude only on specific intervals.

    Or just use the physics engine's collision detection.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Currently there is a bug in collision detection while the size is changing. That pro your issue. You will have to find a workaround. The magnitude option looks like it might best for your situation.
  • mikelowemikelowe Member Posts: 177
    Thanks for the replies.

    Tenrdrmer, I got rid of the size change and it works!
Sign In or Register to comment.