Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Abstract base class for 2D shapes used for physics collision.
Abstract base class for all 2D shapes, intended for use in physics.
get_rect ( ) const
float custom_solver_bias =
The shape's custom solver bias. Defines how much bodies react to enforce contact separation when this shape is involved.
When set to
0, the default value from ProjectSettings.physics/2d/solver/default_contact_bias is used.
true if this shape is colliding with another.
This method needs the transformation matrix for this shape (
local_xform), the shape to check collisions with (
with_shape), and the transformation matrix of that shape (