diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e7a58e6fd4f..99d576a7dbb 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -3593,8 +3593,10 @@ + General purpose area detection and influence for 3D physics. + General purpose area detection for 3D physics. Areas can be used for detection of objects that enter/exit them, as well as overriding space parameters (changing gravity, damping, etc). For this, use any space override different from AREA_SPACE_OVERRIDE_DISABLE and point gravity at the center of mass. @@ -3613,42 +3615,50 @@ + Return the space override mode. + When overriding space parameters, this method sets whether this area has a center of gravity. To set/get the location of the center of gravity, use [method set_gravity_vector]/[method get_gravity_vector]. + Return whether gravity is a point. A point gravity will attract objects towards it, as opposed to a gravity vector, which moves them in a given direction. + Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. + Return the falloff factor for point gravity. + Set the gravity vector. This vector does not have to be normalized. + If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. + Return the gravity vector. If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. @@ -3661,78 +3671,94 @@ + Return the gravity intensity. + Set the rate at which objects stop spinning in this area, if there are not any other forces making it spin. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. + In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. + Return the angular damp rate. + Set the rate at which objects stop moving in this area, if there are not any other forces moving it. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. + In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. + Return the linear damp rate. + Set the order in which the area is processed. Greater values mean the area gets processed first. This is useful for areas which have an space override different from AREA_SPACE_OVERRIDE_DISABLED or AREA_SPACE_OVERRIDE_COMBINE, as they replace values, and are thus order-dependent. + Areas with the same priority value get evaluated in an unpredictable order, and should be differentiated if evaluation order is to be important. + Return the processing order of this area. + Set whether this area can be detected by other, monitoring, areas. Only areas need to be marked as monitorable. Bodies are always so. + Return whether this area can be detected by other, monitoring, areas. + Set whether this area can detect bodies/areas entering/exiting it. + Return whether this area detects bodies/areas entering/exiting it. + Return a list of the bodies ([PhysicsBody]) that are totally or partially inside this area. + Return a list of the areas that are totally or partially inside this area. @@ -3741,6 +3767,7 @@ + Return whether the body passed is totally or partially inside this area. @@ -3749,6 +3776,7 @@ + Return whether the area passed is totally or partially inside this area. @@ -3757,6 +3785,7 @@ + This signal is triggered only once when a body enters this area. The only parameter passed is the body that entered this area. @@ -3769,12 +3798,14 @@ + This signal triggers only once when a body enters this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape of the body that entered this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal is triggered only once when an area enters this area. The only parameter passed is the area that entered this area. @@ -3787,12 +3818,14 @@ + This signal triggers only once when an area enters this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal is triggered only once when a body exits this area. The only parameter passed is the body that exited this area. @@ -3805,12 +3838,14 @@ + This signal triggers only once when a body exits this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape exiting this area, and the fourth one is the index of the shape in this area that reported the exit. + This signal is triggered only once when an area exits this area. The only parameter passed is the area that exited this area. @@ -3823,6 +3858,7 @@ + This signal triggers only once when an area exits this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. @@ -4050,7 +4086,7 @@ - Set whether this area can be detected by other, monitoring, areas. + Return whether this area can be detected by other, monitoring, areas.