missing fils from yesterday comit.
must have made some mistake with git, not sure why they were not sent..
This commit is contained in:
parent
1b3a10891e
commit
af4a97bef9
32 changed files with 331 additions and 113 deletions
|
|
@ -234,7 +234,7 @@ bool BodyPair2DSW::setup(float p_step) {
|
|||
|
||||
|
||||
//cannot collide
|
||||
if ((A->get_layer_mask()&B->get_layer_mask())==0 || A->has_exception(B->get_self()) || B->has_exception(A->get_self()) || (A->get_mode()<=Physics2DServer::BODY_MODE_KINEMATIC && B->get_mode()<=Physics2DServer::BODY_MODE_KINEMATIC)) {
|
||||
if ((A->get_layer_mask()&B->get_layer_mask())==0 || A->has_exception(B->get_self()) || B->has_exception(A->get_self()) || (A->get_mode()<=Physics2DServer::BODY_MODE_KINEMATIC && B->get_mode()<=Physics2DServer::BODY_MODE_KINEMATIC && A->get_max_contacts_reported()==0 && B->get_max_contacts_reported()==0)) {
|
||||
collided=false;
|
||||
return false;
|
||||
}
|
||||
|
|
@ -343,9 +343,11 @@ bool BodyPair2DSW::setup(float p_step) {
|
|||
}
|
||||
}
|
||||
|
||||
if (A->is_shape_set_as_trigger(shape_A) || B->is_shape_set_as_trigger(shape_B)) {
|
||||
if (A->is_shape_set_as_trigger(shape_A) || B->is_shape_set_as_trigger(shape_B) || (A->get_mode()<=Physics2DServer::BODY_MODE_KINEMATIC && B->get_mode()<=Physics2DServer::BODY_MODE_KINEMATIC)) {
|
||||
c.active=false;
|
||||
collided=false;
|
||||
continue;
|
||||
|
||||
}
|
||||
|
||||
// Precompute normal mass, tangent mass, and bias.
|
||||
|
|
@ -476,6 +478,7 @@ BodyPair2DSW::BodyPair2DSW(Body2DSW *p_A, int p_shape_A,Body2DSW *p_B, int p_sha
|
|||
|
||||
BodyPair2DSW::~BodyPair2DSW() {
|
||||
|
||||
|
||||
A->remove_constraint(this);
|
||||
B->remove_constraint(this);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue