Merge pull request #33615 from raphael10241024/fix_shape_change
refresh area2d collision when shape changes
This commit is contained in:
commit
6fd4afa96b
|
@ -46,6 +46,9 @@ AreaSW::BodyKey::BodyKey(AreaSW *p_body, uint32_t p_body_shape, uint32_t p_area_
|
|||
}
|
||||
|
||||
void AreaSW::_shapes_changed() {
|
||||
|
||||
if (!moved_list.in_list() && get_space())
|
||||
get_space()->area_add_to_moved_list(&moved_list);
|
||||
}
|
||||
|
||||
void AreaSW::set_transform(const Transform &p_transform) {
|
||||
|
|
|
@ -46,6 +46,9 @@ Area2DSW::BodyKey::BodyKey(Area2DSW *p_body, uint32_t p_body_shape, uint32_t p_a
|
|||
}
|
||||
|
||||
void Area2DSW::_shapes_changed() {
|
||||
|
||||
if (!moved_list.in_list() && get_space())
|
||||
get_space()->area_add_to_moved_list(&moved_list);
|
||||
}
|
||||
|
||||
void Area2DSW::set_transform(const Transform2D &p_transform) {
|
||||
|
|
Loading…
Reference in New Issue