CollisionPolygon2D

Defines a 2D collision polygon.

Provides a 2D collision polygon to a CollisionObject2D parent. Polygon can be drawn in the editor or specified by a list of vertices.

Members

Aliases

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

Enums

BuildMode
enum BuildMode
Constants
enum Constants

Functions

getBuildMode
CollisionPolygon2D.BuildMode getBuildMode()
getPolygon
PoolVector2Array getPolygon()
isDisabled
bool isDisabled()
isOneWayCollisionEnabled
bool isOneWayCollisionEnabled()
opAssign
CollisionPolygon2D opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(CollisionPolygon2D 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.
setBuildMode
void setBuildMode(long build_mode)
setDisabled
void setDisabled(bool disabled)
setOneWayCollision
void setOneWayCollision(bool enabled)
setPolygon
void setPolygon(PoolVector2Array polygon)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

buildMode
CollisionPolygon2D.BuildMode buildMode [@property getter]
long buildMode [@property setter]

Collision build mode. Use one of the BUILD_* constants. Default value: BUILD_SOLIDS.

disabled
bool disabled [@property setter]

If true no collisions will be detected.

disabled
bool disabled [@property getter]

If true no collisions will be detected.

oneWayCollision
bool oneWayCollision [@property getter]
bool oneWayCollision [@property setter]

If true only edges that face up, relative to CollisionPolygon2D's rotation, will collide with other objects.

polygon
PoolVector2Array polygon [@property getter]
PoolVector2Array polygon [@property setter]

The polygon's list of vertices. The final point will be connected to the first.

Static functions

_new
CollisionPolygon2D _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