(broadPhase *B2BroadPhase, xf B2Transform)
| 277 | } |
| 278 | |
| 279 | func (fix *B2Fixture) CreateProxies(broadPhase *B2BroadPhase, xf B2Transform) { |
| 280 | B2Assert(fix.M_proxyCount == 0) |
| 281 | |
| 282 | // Create proxies in the broad-phase. |
| 283 | fix.M_proxyCount = fix.M_shape.GetChildCount() |
| 284 | |
| 285 | for i := 0; i < fix.M_proxyCount; i++ { |
| 286 | proxy := &fix.M_proxies[i] |
| 287 | fix.M_shape.ComputeAABB(&proxy.Aabb, xf, i) |
| 288 | proxy.ProxyId = broadPhase.CreateProxy(proxy.Aabb, proxy) |
| 289 | proxy.Fixture = fix |
| 290 | proxy.ChildIndex = i |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | func (fix *B2Fixture) DestroyProxies(broadPhase *B2BroadPhase) { |
| 295 | // Destroy proxies in the broad-phase. |
no test coverage detected