(contact B2ContactInterface)
| 384 | } |
| 385 | |
| 386 | func B2ContactDestroy(contact B2ContactInterface) { |
| 387 | B2Assert(s_initialized == true) |
| 388 | |
| 389 | fixtureA := contact.GetFixtureA() |
| 390 | fixtureB := contact.GetFixtureB() |
| 391 | |
| 392 | if contact.GetManifold().PointCount > 0 && fixtureA.IsSensor() == false && fixtureB.IsSensor() == false { |
| 393 | fixtureA.GetBody().SetAwake(true) |
| 394 | fixtureB.GetBody().SetAwake(true) |
| 395 | } |
| 396 | |
| 397 | typeA := fixtureA.GetType() |
| 398 | typeB := fixtureB.GetType() |
| 399 | |
| 400 | B2Assert(0 <= typeA && typeB < B2Shape_Type.E_typeCount) |
| 401 | |
| 402 | destroyFcn := s_registers[typeA][typeB].DestroyFcn |
| 403 | destroyFcn(contact) |
| 404 | } |
| 405 | |
| 406 | func MakeB2Contact(fA *B2Fixture, indexA int, fB *B2Fixture, indexB int) B2Contact { |
| 407 |
no test coverage detected