- getCollisionLayer
long getCollisionLayer()
- getExclude
Array getExclude()
- getMargin
double getMargin()
- getMotion
Vector2 getMotion()
- getShapeRid
RID getShapeRid()
- getTransform
Transform2D getTransform()
- isCollideWithAreasEnabled
bool isCollideWithAreasEnabled()
- isCollideWithBodiesEnabled
bool isCollideWithBodiesEnabled()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(Physics2DShapeQueryParameters other)
- opEquals
bool opEquals(typeof(null) n)
- setCollideWithAreas
void setCollideWithAreas(bool enable)
- setCollideWithBodies
void setCollideWithBodies(bool enable)
- setCollisionLayer
void setCollisionLayer(long collision_layer)
- setExclude
void setExclude(Array exclude)
- setMargin
void setMargin(double margin)
- setMotion
void setMotion(Vector2 motion)
- setShape
void setShape(Resource shape)
Sets the Shape2D that will be used for collision/intersection queries.
- setShapeRid
void setShapeRid(RID shape)
- setTransform
void setTransform(Transform2D transform)
- toHash
size_t toHash()
- collideWithAreas
bool collideWithAreas [@property getter]
bool collideWithAreas [@property setter]
If true, the query will take Area2Ds into account.
- collideWithBodies
bool collideWithBodies [@property getter]
bool collideWithBodies [@property setter]
If true, the query will take PhysicsBody2Ds into account.
- collisionLayer
long collisionLayer [@property getter]
long collisionLayer [@property setter]
The physics layer(s) the query will take into account (as a bitmask). See url=https://docs.godotengine.org/en/3.3/tutorials/physics/physics_introduction.html#collision-layers-and-masksCollision layers and masks/url in the documentation for more information.
- exclude
Array exclude [@property getter]
Array exclude [@property setter]
The list of objects or object RIDs that will be excluded from collisions.
- margin
double margin [@property getter]
double margin [@property setter]
The collision margin for the shape.
- motion
Vector2 motion [@property getter]
Vector2 motion [@property setter]
The motion of the shape being queried for.
- shapeRid
RID shapeRid [@property getter]
RID shapeRid [@property setter]
The queried shape's RID. See also setShape.
- transform
Transform2D transform [@property getter]
Transform2D transform [@property setter]
The queried shape's transform matrix.
Parameters to be sent to a 2D shape physics query.
This class contains the shape and other parameters for 2D intersection/collision queries. See also Physics2DShapeQueryResult.