Physics2DServerSingleton.AreaParameter

Values

ValueMeaning
areaParamGravity0

Constant to set/get gravity strength in an area.

areaParamGravityVector1

Constant to set/get gravity vector/center in an area.

areaParamGravityIsPoint2

Constant to set/get whether the gravity vector of an area is a direction, or a center point.

areaParamGravityDistanceScale3

Constant to set/get the falloff factor for point gravity of an area. The greater this value is, the faster the strength of gravity decreases with the square of distance.

areaParamGravityPointAttenuation4

This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE.

areaParamLinearDamp5

Constant to set/get the linear dampening factor of an area.

areaParamAngularDamp6

Constant to set/get the angular dampening factor of an area.

areaParamPriority7

Constant to set/get the priority (order of processing) of an area.

Meta