PhysicsShapeQueryParameters

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

This class contains the shape and other parameters for 3D intersection/collision queries. See also PhysicsShapeQueryResult.

Members

Aliases

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

Functions

getCollisionMask
long getCollisionMask()
getExclude
Array getExclude()
getMargin
double getMargin()
getShapeRid
RID getShapeRid()
getTransform
Transform getTransform()
isCollideWithAreasEnabled
bool isCollideWithAreasEnabled()
isCollideWithBodiesEnabled
bool isCollideWithBodiesEnabled()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(PhysicsShapeQueryParameters other)
opEquals
bool opEquals(typeof(null) n)
setCollideWithAreas
void setCollideWithAreas(bool enable)
setCollideWithBodies
void setCollideWithBodies(bool enable)
setCollisionMask
void setCollisionMask(long collision_mask)
setExclude
void setExclude(Array exclude)
setMargin
void setMargin(double margin)
setShape
void setShape(Resource shape)

Sets the Shape that will be used for collision/intersection queries.

setShapeRid
void setShapeRid(RID shape)
setTransform
void setTransform(Transform 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 Areas into account.

collideWithBodies
bool collideWithBodies [@property getter]
bool collideWithBodies [@property setter]

If true, the query will take PhysicsBodys into account.

collisionMask
long collisionMask [@property getter]
long collisionMask [@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.

shapeRid
RID shapeRid [@property getter]
RID shapeRid [@property setter]

The queried shape's RID. See also setShape.

transform
Transform transform [@property getter]
Transform transform [@property setter]

The queried shape's transform matrix.

Static functions

_new
PhysicsShapeQueryParameters _new()

Construct a new instance of PhysicsShapeQueryParameters. Note: use memnew!PhysicsShapeQueryParameters 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