1 RMS_Constraints
trac edited this page 2008-02-23 04:18:58 +01:00

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.