CollisionShape2D¶
Inherits: Node2D < CanvasItem < Node < Object
Category: Core
Brief Description¶
Editor-only class for easy editing of shapes.
Member Functions¶
Shape2D | get_shape ( ) const |
bool | is_disabled ( ) const |
bool | is_one_way_collision_enabled ( ) const |
void | set_disabled ( bool disabled ) |
void | set_one_way_collision ( bool enabled ) |
void | set_shape ( Shape2D shape ) |
Description¶
Editor-only class. This is not present when running the game. It’s used in the editor to properly edit and position collision shapes in CollisionObject2D. This is not accessible from regular code.
Member Function Description¶
- Shape2D get_shape ( ) const
Return this shape’s Shape2D.
- bool is_disabled ( ) const
- bool is_one_way_collision_enabled ( ) const
- void set_disabled ( bool disabled )
- void set_one_way_collision ( bool enabled )
- void set_shape ( Shape2D shape )
Set this shape’s Shape2D. This will not appear as a node, but can be directly edited as a property.