constraint(area)

This is the constructor. It defines the area the constraint(s) will pertain to.

preventOverlap()

This method prevents an object or area from overlapping the defined area.

preventExit()

This method forces an object or area to reamin within the defined area.

distance(min, max)

This method defines the minimum and maximum distance an object or area can be from the defined area.

surfaceDist(passable, min, max)

This method defines the minimum and maximum distance the defined area can be from a passable or impassable area (land and water basically).

setObject(object)

This method defines the object(s) that must adhere to the constraints.

setArea(area)

This method defines the area(s) that must adhere to the constraints.

Last modified 16 years ago Last modified on Feb 23, 2008, 4:18:58 AM
Note: See TracWiki for help on using the wiki.