Version 1 (modified by trac, 16 years ago) ( diff )

--

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.

Note: See TracWiki for help on using the wiki.