angularDamp

    Constant to set/get the angular damping factor of an area. The default value of this parameter is 1.0.

    PhysicsServer2D.swift:131
    case angularDamp

    Other cases

    • case gravityOverrideMode

      Constant to set/get gravity override mode in an area. See AreaSpaceOverrideMode for possible values. The default value of this parameter is .areaSpaceOverrideDisabled.

    • case gravity

      Constant to set/get gravity strength in an area. The default value of this parameter is 9.80665.

    • case gravityVector

      Constant to set/get gravity vector/center in an area. The default value of this parameter is Vector2(0, -1).

    • case gravityIsPoint

      Constant to set/get whether the gravity vector of an area is a direction, or a center point. The default value of this parameter is false.

    • case gravityPointUnitDistance

      Constant to set/get the distance at which the gravity strength is equal to the gravity controlled by .areaParamGravity. For example, on a planet 100 pixels in radius with a surface gravity of 4.0 px/s², set the gravity to 4.0 and the unit distance to 100.0. The gravity will have falloff according to the inverse square law, so in the example, at 200 pixels from the center the gravity will be 1.0 px/s² (twice the distance, 1/4th the gravity), at 50 pixels it will be 16.0 px/s² (half the distance, 4x the gravity), and so on.

    • case linearDampOverrideMode

      Constant to set/get linear damping override mode in an area. See AreaSpaceOverrideMode for possible values. The default value of this parameter is .areaSpaceOverrideDisabled.

    • case linearDamp

      Constant to set/get the linear damping factor of an area. The default value of this parameter is 0.1.

    • case angularDampOverrideMode

      Constant to set/get angular damping override mode in an area. See AreaSpaceOverrideMode for possible values. The default value of this parameter is .areaSpaceOverrideDisabled.

    • case priority

      Constant to set/get the priority (order of processing) of an area. The default value of this parameter is 0.