Physics2DShapeQueryParameters
Inherits: Reference < Object Parameters to be sent to a 2D shape physics query.
Description
This class contains the shape and other parameters for 2D intersection/collision queries.
Properties
Methods
Property Descriptions
- bool collide_with_areas
true, the query will take Area2Ds into account.
- bool collide_with_bodies
true, the query will take PhysicsBody2Ds into account.
- int collision_layer Collision layers and masks in the documentation for more information.
- Array exclude RIDs that will be excluded from collisions.
- float margin The collision margin for the shape.
- Vector2 motion The motion of the shape being queried for.
- RID shape_rid RID. See also set_shape.
