36 assert(index < GetProxyCount());
37 return (GetProxyCount() <= 2)? m_proxies.asArray[index]: m_proxies.asBuffer[index];
43 const auto world = body->GetWorld();
46 const auto contacts = body->GetContacts();
47 std::for_each(cbegin(contacts), cend(contacts), [&](
KeyedContactPtr ci) {
49 const auto fixtureA = contact->GetFixtureA();
50 const auto fixtureB = contact->GetFixtureB();
51 if ((fixtureA ==
this) || (fixtureB ==
this))
53 contact->FlagForFiltering();
57 WorldAtty::TouchProxies(*world, *
this);
62 if (sensor != m_isSensor)
66 const auto body = GetBody();
71 const auto contacts = body->GetContacts();
72 std::for_each(cbegin(contacts), cend(contacts), [&](
KeyedContactPtr ci) {
74 contact->FlagForUpdating();
87 f.GetBody()->SetAwake();
92 assert(
static_cast<Body*
>(f.GetBody()));
101 return f.GetBody()->GetTransformation();