Enum PhysicsServer2D.AreaParameter
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum PhysicsServer2D.AreaParameter : long
Fields
AngularDamp = 8
Constant to set/get the angular damping factor of an area. The default value of this parameter is
1.0
.AngularDampOverrideMode = 7
Constant to set/get angular damping override mode in an area. See PhysicsServer2D.AreaSpaceOverrideMode for possible values. The default value of this parameter is Disabled.
Gravity = 1
Constant to set/get gravity strength in an area. The default value of this parameter is
9.80665
.GravityIsPoint = 3
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
.GravityOverrideMode = 0
Constant to set/get gravity override mode in an area. See PhysicsServer2D.AreaSpaceOverrideMode for possible values. The default value of this parameter is Disabled.
GravityPointUnitDistance = 4
Constant to set/get the distance at which the gravity strength is equal to the gravity controlled by Gravity. 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.
The above is true only when the unit distance is a positive number. When the unit distance is set to 0.0, the gravity will be constant regardless of distance. The default value of this parameter is
0.0
.GravityVector = 2
Constant to set/get gravity vector/center in an area. The default value of this parameter is
Vector2(0, -1)
.LinearDamp = 6
Constant to set/get the linear damping factor of an area. The default value of this parameter is
0.1
.LinearDampOverrideMode = 5
Constant to set/get linear damping override mode in an area. See PhysicsServer2D.AreaSpaceOverrideMode for possible values. The default value of this parameter is Disabled.
Priority = 9
Constant to set/get the priority (order of processing) of an area. The default value of this parameter is
0
.