mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Update area-body_shape_entered-exited signal documentation.
This commit is contained in:
parent
98ccaa1bad
commit
a77173b335
@ -140,14 +140,16 @@
|
||||
<argument index="0" name="area" type="Area2D">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area enters.
|
||||
Emitted when another Area2D enters this Area2D. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area[/code] the other Area2D.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="area_exited">
|
||||
<argument index="0" name="area" type="Area2D">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area exits.
|
||||
Emitted when another Area2D exits this Area2D. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area[/code] the other Area2D.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="area_shape_entered">
|
||||
@ -160,7 +162,11 @@
|
||||
<argument index="3" name="self_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area enters, reporting which shapes overlapped. [code]shape_owner_get_owner(shape_find_owner(shape))[/code] returns the parent object of the owner of the [code]shape[/code].
|
||||
Emitted when one of another Area2D's [Shape2D]s enters one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area_id[/code] the [RID] of the other Area2D's [CollisionObject2D] used by the [PhysicsServer2D].
|
||||
[code]area[/code] the other Area2D.
|
||||
[code]area_shape[/code] the index of the [Shape2D] of the other Area2D used by the [PhysicsServer2D].
|
||||
[code]self_shape[/code] the index of the [Shape2D] of this Area2D used by the [PhysicsServer2D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="area_shape_exited">
|
||||
@ -173,23 +179,27 @@
|
||||
<argument index="3" name="self_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area exits, reporting which shapes were overlapping.
|
||||
Emitted when one of another Area2D's [Shape2D]s exits one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area_id[/code] the [RID] of the other Area2D's [CollisionObject2D] used by the [PhysicsServer2D].
|
||||
[code]area[/code] the other Area2D.
|
||||
[code]area_shape[/code] the index of the [Shape2D] of the other Area2D used by the [PhysicsServer2D].
|
||||
[code]self_shape[/code] the index of the [Shape2D] of this Area2D used by the [PhysicsServer2D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_entered">
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body enters.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody2D] or a [TileMap] instance (while TileMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when a [PhysicsBody2D] or [TileMap] enters this Area2D. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_exited">
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body exits.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody2D] or a [TileMap] instance (while TileMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when a [PhysicsBody2D] or [TileMap] exits this Area2D. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_entered">
|
||||
@ -202,8 +212,11 @@
|
||||
<argument index="3" name="area_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body enters, reporting which shapes overlapped.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody2D] or a [TileMap] instance (while TileMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when one of a [PhysicsBody2D] or [TileMap]'s [Shape2D]s enters one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body_id[/code] the [RID] of the [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the [PhysicsBody2D] or [TileMap].
|
||||
[code]body_shape[/code] the index of the [Shape2D] of the [PhysicsBody2D] or [TileMap] used by the [PhysicsServer2D].
|
||||
[code]area_shape[/code] the index of the [Shape2D] of this Area2D used by the [PhysicsServer2D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_exited">
|
||||
@ -216,8 +229,11 @@
|
||||
<argument index="3" name="area_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body exits, reporting which shapes were overlapping.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody2D] or a [TileMap] instance (while TileMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when one of a [PhysicsBody2D] or [TileMap]'s [Shape2D]s exits one of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to [code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body_id[/code] the [RID] of the [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the [PhysicsBody2D] or [TileMap].
|
||||
[code]body_shape[/code] the index of the [Shape2D] of the [PhysicsBody2D] or [TileMap] used by the [PhysicsServer2D].
|
||||
[code]area_shape[/code] the index of the [Shape2D] of this Area2D used by the [PhysicsServer2D].
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
@ -150,14 +150,16 @@
|
||||
<argument index="0" name="area" type="Area3D">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area enters.
|
||||
Emitted when another Area3D enters this Area3D. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area[/code] the other Area3D.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="area_exited">
|
||||
<argument index="0" name="area" type="Area3D">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area exits.
|
||||
Emitted when another Area3D exits this Area3D. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area[/code] the other Area3D.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="area_shape_entered">
|
||||
@ -170,7 +172,11 @@
|
||||
<argument index="3" name="self_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area enters, reporting which areas overlapped. [code]shape_owner_get_owner(shape_find_owner(shape))[/code] returns the parent object of the owner of the [code]shape[/code].
|
||||
Emitted when one of another Area3D's [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area_id[/code] the [RID] of the other Area3D's [CollisionObject3D] used by the [PhysicsServer3D].
|
||||
[code]area[/code] the other Area3D.
|
||||
[code]area_shape[/code] the index of the [Shape3D] of the other Area3D used by the [PhysicsServer3D].
|
||||
[code]self_shape[/code] the index of the [Shape3D] of this Area3D used by the [PhysicsServer3D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="area_shape_exited">
|
||||
@ -183,23 +189,27 @@
|
||||
<argument index="3" name="self_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when another area exits, reporting which areas were overlapping.
|
||||
Emitted when one of another Area3D's [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code].
|
||||
[code]area_id[/code] the [RID] of the other Area3D's [CollisionObject3D] used by the [PhysicsServer3D].
|
||||
[code]area[/code] the other Area3D.
|
||||
[code]area_shape[/code] the index of the [Shape3D] of the other Area3D used by the [PhysicsServer3D].
|
||||
[code]self_shape[/code] the index of the [Shape3D] of this Area3D used by the [PhysicsServer3D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_entered">
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body enters.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody3D] or a [GridMap] instance (while GridMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when a [PhysicsBody3D] or [GridMap] enters this Area3D. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_exited">
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body exits.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody3D] or a [GridMap] instance (while GridMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when a [PhysicsBody3D] or [GridMap] exits this Area3D. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_entered">
|
||||
@ -212,8 +222,11 @@
|
||||
<argument index="3" name="area_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body enters, reporting which shapes overlapped.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody3D] or a [GridMap] instance (while GridMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when one of a [PhysicsBody3D] or [GridMap]'s [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body_id[/code] the [RID] of the [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the [PhysicsBody3D] or [GridMap].
|
||||
[code]body_shape[/code] the index of the [Shape3D] of the [PhysicsBody3D] or [GridMap] used by the [PhysicsServer3D].
|
||||
[code]area_shape[/code] the index of the [Shape3D] of this Area3D used by the [PhysicsServer3D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_exited">
|
||||
@ -226,8 +239,11 @@
|
||||
<argument index="3" name="area_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a physics body exits, reporting which shapes were overlapping.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody3D] or a [GridMap] instance (while GridMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
Emitted when one of a [PhysicsBody3D] or [GridMap]'s [Shape3D]s enters one of this Area3D's [Shape3D]s. Requires [member monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body_id[/code] the [RID] of the [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the [PhysicsBody3D] or [GridMap].
|
||||
[code]body_shape[/code] the index of the [Shape3D] of the [PhysicsBody3D] or [GridMap] used by the [PhysicsServer3D].
|
||||
[code]area_shape[/code] the index of the [Shape3D] of this Area3D used by the [PhysicsServer3D].
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
@ -180,14 +180,16 @@
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body enters into contact with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
Emitted when a collision with another [PhysicsBody2D] or [TileMap] occurs. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_exited">
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body exits contact with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
Emitted when the collision with another [PhysicsBody2D] or [TileMap] ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_entered">
|
||||
@ -200,7 +202,11 @@
|
||||
<argument index="3" name="local_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body enters into contact with this one. Reports colliding shape information. See [CollisionObject2D] for shape index information. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
Emitted when one of this RigidBody2D's [Shape2D]s collides with another [PhysicsBody2D] or [TileMap]'s [Shape2D]s. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body_id[/code] the [RID] of the other [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap].
|
||||
[code]body_shape[/code] the index of the [Shape2D] of the other [PhysicsBody2D] or [TileMap] used by the [PhysicsServer2D].
|
||||
[code]local_shape[/code] the index of the [Shape2D] of this RigidBody2D used by the [PhysicsServer2D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_exited">
|
||||
@ -213,7 +219,11 @@
|
||||
<argument index="3" name="local_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body shape exits contact with this one. Reports colliding shape information. See [CollisionObject2D] for shape index information. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
Emitted when the collision between one of this RigidBody2D's [Shape2D]s and another [PhysicsBody2D] or [TileMap]'s [Shape2D]s ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.
|
||||
[code]body_id[/code] the [RID] of the other [PhysicsBody2D] or [TileSet]'s [CollisionObject2D] used by the [PhysicsServer2D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap].
|
||||
[code]body_shape[/code] the index of the [Shape2D] of the other [PhysicsBody2D] or [TileMap] used by the [PhysicsServer2D].
|
||||
[code]local_shape[/code] the index of the [Shape2D] of this RigidBody2D used by the [PhysicsServer2D].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="sleeping_state_changed">
|
||||
|
@ -204,14 +204,16 @@
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body enters into contact with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
Emitted when a collision with another [PhysicsBody3D] or [GridMap] occurs. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_exited">
|
||||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body shape exits contact with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
Emitted when the collision with another [PhysicsBody3D] or [GridMap] ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="body_shape_entered">
|
||||
@ -224,8 +226,11 @@
|
||||
<argument index="3" name="local_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body enters into contact with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
This signal not only receives the body that collided with this one, but also its [RID] ([code]body_id[/code]), the shape index from the colliding body ([code]body_shape[/code]), and the shape index from this body ([code]local_shape[/code]) the other body collided with.
|
||||
Emitted when one of this RigidBody3D's [Shape3D]s collides with another [PhysicsBody3D] or [GridMap]'s [Shape3D]s. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body_id[/code] the [RID] of the other [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D].
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap].
|
||||
[code]body_shape[/code] the index of the [Shape3D] of the other [PhysicsBody3D] or [GridMap] used by the [PhysicsServer3D].
|
||||
[code]local_shape[/code] the index of the [Shape3D] of this RigidBody3D used by the [PhysicsServer3D].
|
||||
[b]Note:[/b] Bullet physics cannot identify the shape index when using a [ConcavePolygonShape3D]. Don't use multiple [CollisionShape3D]s when using a [ConcavePolygonShape3D] with Bullet physics if you need shape indices.
|
||||
</description>
|
||||
</signal>
|
||||
@ -239,8 +244,11 @@
|
||||
<argument index="3" name="local_shape" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when a body shape exits contact with this one. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions.
|
||||
This signal not only receives the body that stopped colliding with this one, but also its [RID] ([code]body_id[/code]), the shape index from the colliding body ([code]body_shape[/code]), and the shape index from this body ([code]local_shape[/code]) the other body stopped colliding with.
|
||||
Emitted when the collision between one of this RigidBody3D's [Shape3D]s and another [PhysicsBody3D] or [GridMap]'s [Shape3D]s ends. Requires [member contact_monitor] to be set to [code]true[/code] and [member contacts_reported] to be set high enough to detect all the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s.
|
||||
[code]body_id[/code] the [RID] of the other [PhysicsBody3D] or [MeshLibrary]'s [CollisionObject3D] used by the [PhysicsServer3D]. [GridMap]s are detected if the Meshes have [Shape3D]s.
|
||||
[code]body[/code] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap].
|
||||
[code]body_shape[/code] the index of the [Shape3D] of the other [PhysicsBody3D] or [GridMap] used by the [PhysicsServer3D].
|
||||
[code]local_shape[/code] the index of the [Shape3D] of this RigidBody3D used by the [PhysicsServer3D].
|
||||
[b]Note:[/b] Bullet physics cannot identify the shape index when using a [ConcavePolygonShape3D]. Don't use multiple [CollisionShape3D]s when using a [ConcavePolygonShape3D] with Bullet physics if you need shape indices.
|
||||
</description>
|
||||
</signal>
|
||||
|
Loading…
Reference in New Issue
Block a user