Click or drag to resize

AreaOverlapsBody Method

If true, the given physics body overlaps the Area.

Note: The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.

The body argument can either be a PhysicsBody or a GridMap instance (while GridMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool OverlapsBody(
	Node body
)

Parameters

body
Type: GodotNode

[Missing <param name="body"/> documentation for "M:Godot.Area.OverlapsBody(Godot.Node)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Area.OverlapsBody(Godot.Node)"]

See Also