Exemplo n.º 1
0
 public Fixture()
 {
     m_userData = null;
     m_body = null;
     m_next = null;
     m_proxies = null;
     m_proxyCount = 0;
     m_shape = null;
     m_filter = new Filter();
 }
Exemplo n.º 2
0
 public FixtureDef()
 {
     shape = null;
     userData = null;
     friction = 0.2f;
     restitution = 0f;
     density = 0f;
     filter = new Filter();
     _isSensor = false;
 }
Exemplo n.º 3
0
 /**
    * Contact filtering data;
    */
 public void setFilter(Filter filter)
 {
     this.filter = filter;
 }
Exemplo n.º 4
0
        /**
           * Set the contact filtering data. This is an expensive operation and should not be called
           * frequently. This will not update contacts until the next time step when either parent body is
           * awake. This automatically calls refilter.
           *
           * @param filter
           */
        public void setFilterData(Filter filter)
        {
            m_filter.set(filter);

            refilter();
        }