How do i make a magnetic like field like effect...

oldefaitholdefaith Member Posts: 23
edited November -1 in Working with GS (Mac)
like set a distance in which an actor can pass because of distance restrictions, similar to a magnet

looking for a boundry type effect to keep the actor from hitting the other actor

Comments

  • InLikeFlynnInLikeFlynn Member Posts: 171
    You'll want to use constrains and the distance formula and set up rules according to what you want at each distance. Distance formula is (((x2-x1)^2)-((y2-y1)^2))^(1/2) More here:
    http://www.purplemath.com/modules/distform.htm

    Constrain the x and y of each object, then constrain a new distance variable as the result of the distance formula.
Sign In or Register to comment.