Physics2DShapeQueryParameters

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.

@GodotBaseClass
struct Physics2DShapeQueryParameters {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

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()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

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.

Static functions

_new
Physics2DShapeQueryParameters _new()

Construct a new instance of Physics2DShapeQueryParameters. Note: use memnew!Physics2DShapeQueryParameters instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta