Making a magnet

rodrigosw94rodrigosw94 Member Posts: 45
edited April 2012 in Working with GS (Mac)
Hi,

Are possible in the GS, make a magnet? I have two actors, the magnet and the box. I need the magnet take the box when the box is next to magnet.

Its possible? Making than collide.

Thanks

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    Get the magnitude between the the magnet and the box. Then when magnitude is less then whatever, interpolate or accelerate to, the box to the magnets x and y.

    Heres a video on magnitude.

Answers

  • rodrigosw94rodrigosw94 Member Posts: 45
    thanks! i did this! =)
  • MrSKYoneMrSKYone Member Posts: 26
    edited July 2012
    Getting in the loop here cause I need some help ^^

    Im working on a project using magnets
    When a projectile actor (A) is overlapping a magnet actor (B), B is influencing A with an accelerate toward behavior.

    The toward should be the center of B, so I set up the coordinate and everything works fine. However, as the set up as to be made in A, it makes things very hard when you want to add multiple magnets into your scene. Every one of them has different coordinates.

    Is there a way to deal with this?
    Thanks a lot :)
Sign In or Register to comment.