Base node for 2D collision objects.
CollisionObject2D is the base class for 2D physics objects. It can hold any number of 2D collision [Shape2D]s. Each shape must be assigned to a [i]shape owner[/i]. The CollisionObject2D can have any number of shape owners. Shape owners are not nodes and do not appear in the editor, but are accessible through code using the [code]shape_owner_*[/code] methods.
Creates a new shape owner for the given object. Returns [code]owner_id[/code] of the new owner for future reference.
Returns the object's [RID].
Returns an [Array] of [code]owner_id[/code] identifiers. You can use these ids in other methods that take [code]owner_id[/code] as an argument.
If [code]true[/code] the shape owner and its shapes are disabled.
Removes the given shape owner.
Returns the [code]owner_id[/code] of the given shape.
Adds a [Shape2D] to the shape owner.
Removes all shapes from the shape owner.
Returns the parent object of the given shape owner.
Returns the [Shape2D] with the given id from the given shape owner.
Returns the number of shapes the given shape owner contains.
Returns the shape owner's [Transform2D].
Removes a shape from the given shape owner.
If [code]true[/code] disables the given shape owner.
Sets the [Transform2D] of the given shape owner.
If [code]true[/code] this object is pickable. A pickable object can detect the mouse pointer entering/leaving, and if the mouse is inside it, report input events.
Emitted when an input event occurs and [code]input_pickable[/code] is [code]true[/code].
Emitted when the mouse pointer enters any of this object's shapes.
Emitted when the mouse pointer exits all this object's shapes.