diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-15 18:40:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 18:40:36 +0200 |
commit | ea21b8ff83b2c7254a3c6552aedad0c9df7fc48f (patch) | |
tree | 0762b291ca5bc73d6d9ad421759cb090975a3ea8 | |
parent | 14e3d68dd99c015d33daf59b0feec2d12cfe6a3a (diff) | |
parent | e496db79d89a28d9913e052445d764fe68446207 (diff) |
Merge pull request #42823 from madmiraal/update-intersect_point-doc
Update intersect_point documentation to mention solid shapes.
-rw-r--r-- | doc/classes/PhysicsDirectSpaceState2D.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/PhysicsDirectSpaceState2D.xml b/doc/classes/PhysicsDirectSpaceState2D.xml index 676e33601a..c26cf0514c 100644 --- a/doc/classes/PhysicsDirectSpaceState2D.xml +++ b/doc/classes/PhysicsDirectSpaceState2D.xml @@ -64,13 +64,14 @@ <argument index="5" name="collide_with_areas" type="bool" default="false"> </argument> <description> - Checks whether a point is inside any shape. The shapes the point is inside of are returned in an array containing dictionaries with the following fields: + Checks whether a point is inside any solid shape. The shapes the point is inside of are returned in an array containing dictionaries with the following fields: [code]collider[/code]: The colliding object. [code]collider_id[/code]: The colliding object's ID. [code]metadata[/code]: The intersecting shape's metadata. This metadata is different from [method Object.get_meta], and is set with [method PhysicsServer2D.shape_set_data]. [code]rid[/code]: The intersecting object's [RID]. [code]shape[/code]: The shape index of the colliding shape. Additionally, the method can take an [code]exclude[/code] array of objects or [RID]s that are to be excluded from collisions, a [code]collision_mask[/code] bitmask representing the physics layers to check in, or booleans to determine if the ray should collide with [PhysicsBody2D]s or [Area2D]s, respectively. + [b]Note:[/b] [ConcavePolygonShape2D]s and [CollisionPolygon2D]s in [code]Segments[/code] build mode are not solid shapes. Therefore, they will not be detected. </description> </method> <method name="intersect_point_on_canvas"> |