src/main/java/com/inari/firefly/physics/collision/ContactPool.java
/** Use this to directly register an entity id for a specified ContactPool instance.
     *  This first checks if the Entity is a valid entity by checking the availability of 
     *  an ETranform and an ECollision component and also the absence of an ETile component.
     *  
     *  (Tiles are not supported by ContactPools, they get checked against contacts within their TileGrid context)
     *  
     *  Also the equality of View and Layer id of the Entities Transform must match the View and Layer id of the ContactPool
     *  to get the entityId registered in a ContactPool. 
     *  All this check are done by registering and a User has not to concern about this
     *  
     * @param entityId the Entity id to add / register
     */
Use this to directly register an entity id for a specified ContactPool instance.
This first checks if the Entity is a valid entity by checking the availability of
an ETranform and an ECollision component and also the absence of an ETile component.

(Tiles are not supported by ContactPools, they get checked against contacts within their TileGrid context)

Also the equality of View and Layer id of the Entities Transform must match the View and Layer id of the ContactPool
to get the entityId registered in a ContactPool.
All this check are done by registering and a User has not to concern about this

@param entityId the Entity id to add / register
Use this to directly register an entity id for a specified ContactPool instance . This first checks if the Entity is a valid entity by checking the availability of an ETranform and an ECollision component and also the absence of an ETile component . ( Tiles are not supported by ContactPools they get checked against contacts within their TileGrid context ) Also the equality of View and Layer id of the Entities Transform must match the View and Layer id of the ContactPool to get the entityId registered in a ContactPool . All this check are done by registering and a User has not to concern about this @param entityId the Entity id to add / register
public final void register( int entityId ) {
        final Aspects aspects = context.getEntityComponentAspects( entityId );
        if ( !aspects.include( MATCHER ) || aspects.contains( ETile.TYPE_KEY ) ) {
            return;
        }
        final ETransform transform = context.getEntityComponent( entityId, ETransform.TYPE_KEY );
        if ( this.viewId != transform.getViewId() || this.layerId != transform.getLayerId() ) {
            return;
        }
        add( entityId );
    }
public final void register ( int entityId ) { final Aspects aspects = context . getEntityComponentAspects ( entityId ) ; if ( ! aspects . include ( MATCHER ) || aspects . contains ( ETile . TYPE_KEY ) ) { return ; } final ETransform transform = context . getEntityComponent ( entityId , ETransform . TYPE_KEY ) ; if ( this . viewId != transform . getViewId ( ) || this . layerId != transform . getLayerId ( ) ) { return ; } add ( entityId ) ; }
Use this to directly register an entity id for a specified ContactPool instance.
Use this to directly register an entity id for a specified ContactPool instance .