CollisionPolygon

Editor-only class for defining a collision polygon in 3D space.

Allows editing a collision polygon's vertices on a selected plane. Can also set a depth perpendicular to that plane. This class is only available in the editor. It will not appear in the scene tree at runtime. Creates a Shape for gameplay. Properties modified during gameplay will have no effect.

Members

Aliases

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

Functions

_isEditable3dPolygon
bool _isEditable3dPolygon()
getDepth
double getDepth()
getPolygon
PoolVector2Array getPolygon()
isDisabled
bool isDisabled()
opAssign
CollisionPolygon opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(CollisionPolygon 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.
setDepth
void setDepth(double depth)
setDisabled
void setDisabled(bool disabled)
setPolygon
void setPolygon(PoolVector2Array polygon)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

depth
double depth [@property getter]
double depth [@property setter]

Length that the resulting collision extends in either direction perpendicular to its polygon.

disabled
bool disabled [@property getter]
bool disabled [@property setter]

If true, no collision will be produced.

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

Array of vertices which define the polygon.

Static functions

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