Physics2DShapeQueryParameters

Parameters to be sent to a 2D shape physics query.

This class contains the shape and other parameters for intersection/collision queries.

@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
Physics2DShapeQueryParameters opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Physics2DShapeQueryParameters other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
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)

Set the Shape2D that will be used for collision/intersection queries.

setShapeRid
void setShapeRid(RID shape)
setTransform
void setTransform(Transform2D transform)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

collideWithAreas
bool collideWithAreas [@property getter]
bool collideWithAreas [@property setter]
collideWithBodies
bool collideWithBodies [@property getter]
bool collideWithBodies [@property setter]
collisionLayer
long collisionLayer [@property getter]
long collisionLayer [@property setter]

The physics layer the query should be made on.

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 RID of the queried shape. See setShape also.

transform
Transform2D transform [@property getter]
Transform2D transform [@property setter]

the transform matrix of the queried shape.

Static functions

_new
Physics2DShapeQueryParameters _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
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
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
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