Click or drag to resize

RigidBodyGetCollidingBodies Method

Returns a list of the bodies colliding with this one. Requires ContactMonitor to be set to true and ContactsReported to be set high enough to detect all the collisions.

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

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Array GetCollidingBodies()

Return Value

Type: Array

[Missing <returns> documentation for "M:Godot.RigidBody.GetCollidingBodies"]

See Also