class_shape2d - dragonsoulz/godot GitHub Wiki
Shape2D
####Inherits: Resource ####Category: Core
Brief Description
Base class for all 2D Shapes.
Member Functions
- void set_custom_solver_bias ( float bias )
- float get_custom_solver_bias ( ) const
- bool collide ( Matrix32 local_xform, Shape2D with_shape, Matrix32 shape_xform )
- bool collide_with_motion ( Matrix32 local_xform, Vector2 local_motion, Shape2D with_shape, Matrix32 shape_xform, Vector2 shape_motion )
- void collide_and_get_contacts ( Matrix32 local_xform, Shape2D with_shape, Matrix32 shape_xform )
- void collide_with_motion_and_get_contacts ( Matrix32 local_xform, Vector2 local_motion, Shape2D with_shape, Matrix32 shape_xform, Vector2 shape_motion )
Description
Base class for all 2D Shapes. All 2D shape types inherit from this.
Member Function Description
set_custom_solver_bias
- void set_custom_solver_bias ( float bias )
Use a custom solver bias. No need to change this unless you really know what you are doing.
get_custom_solver_bias
- float get_custom_solver_bias ( ) const
Return the custom solver bias. No need to change this unless you really know what you are doing.