Ejemplo n.º 1
0
        public virtual BroadphaseProxy CreateProxy(ref Vector3 aabbMin, ref Vector3 aabbMax, BroadphaseNativeTypes shapeType, Object userPtr, CollisionFilterGroups collisionFilterGroup, CollisionFilterGroups collisionFilterMask, IDispatcher dispatcher, Object multiSapProxy)
        {
	        //void* ignoreMe -> we could think of recursive multi-sap, if someone is interested

	        MultiSapProxy proxy = new MultiSapProxy(ref aabbMin,  ref aabbMax,shapeType,userPtr, collisionFilterGroup,collisionFilterMask);
	        m_multiSapProxies.Add(proxy);

	        ///this should deal with inserting/removal into child broadphases
	        SetAabb(proxy,ref aabbMin,ref aabbMax,dispatcher);
	        return proxy;
        }
Ejemplo n.º 2
0
        public void AddToChildBroadphase(MultiSapProxy parentMultiSapProxy, BroadphaseProxy childProxy, IBroadphaseInterface childBroadphase)
        {
	        BridgeProxy bridgeProxyRef = new BridgeProxy();
	        bridgeProxyRef.m_childProxy = childProxy;
	        bridgeProxyRef.m_childBroadphase = childBroadphase;
	        parentMultiSapProxy.m_bridgeProxies.Add(bridgeProxyRef);
        }