Struct Physics2DShapeQueryParameters
Parameters to be sent to a 2D shape physics query.
struct Physics2DShapeQueryParameters
;
This class contains the shape and other parameters for 2D intersection/collision queries. See also Physics2DShapeQueryResult
.
Properties
Name | Type | Description |
---|---|---|
collideWithAreas [get, set]
|
bool | If true , the query will take Area2D s into account.
|
collideWithBodies [get, set]
|
bool | If true , the query will take PhysicsBody2D s into account.
|
collisionLayer [get, set]
|
long | The physics layer(s) the query will take into account (as a bitmask). |
exclude [get, set]
|
Array | The list of objects or object RID s that will be excluded from collisions.
|
margin [get, set]
|
double | The collision margin for the shape. |
motion [get, set]
|
Vector2 | The motion of the shape being queried for. |
shapeRid [get, set]
|
RID | The queried shape's RID . See also setShape .
|
transform [get, set]
|
Transform2D | The queried shape's transform matrix. |
Methods
Name | Description |
---|---|
getCollisionLayer
|
|
getExclude
|
|
getMargin
|
|
getMotion
|
|
getShapeRid
|
|
getTransform
|
|
isCollideWithAreasEnabled
|
|
isCollideWithBodiesEnabled
|
|
setCollideWithAreas
|
|
setCollideWithBodies
|
|
setCollisionLayer
|
|
setExclude
|
|
setMargin
|
|
setMotion
|
|
setShape
|
Sets the Shape2D that will be used for collision/intersection queries.
|
setShapeRid
|
|
setTransform
|