Editor-only class for easy editing of shapes.
|int||get_collision_object_shape_index ( ) const|
|Object||get_shape ( ) const|
|bool||is_trigger ( ) const|
|void||set_shape ( Object shape )|
|void||set_trigger ( bool enable )|
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.
Return this shape’s Shape2D.
Return whether this shape is a trigger.
Set this shape’s Shape2D. This will not appear as a node, but can be directly edited as a property.
Set whether this shape is a trigger. A trigger shape detects collisions, but is otherwise unaffected by physics (i.e. will not block movement of colliding objects).
© 2014–2017 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.