Shape2D
Inherited By: , CircleShape2D, , ConvexPolygonShape2D, , RayShape2D, , SegmentShape2D
Category: Core
Base class for all 2D Shapes.
Properties
Description
Property Descriptions
- custom_solver_bias
Returns 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 (shape_xform
).
Returns a list of the points where this shape touches another. If there are no collisions the list is empty.
Returns whether this shape would collide with another, if a given movement was applied.
This method needs the transformation matrix for this shape (local_xform
), the movement to test on this shape (local_motion
), the shape to check collisions with (with_shape
), the transformation matrix of that shape (), and the movement to test onto the other object (shape_motion
).
- Array collide_with_motion_and_get_contacts ( local_xform, Vector2 local_motion, with_shape, Transform2D shape_xform, shape_motion )
Returns a list of the points where this shape would touch another, if a given movement was applied. If there are no collisions the list is empty.