Quantcast
Channel: Questions in topic: "contact"
Viewing all articles
Browse latest Browse all 75

How is the default value of ContactFilter2D.isFiltering true?

$
0
0
I have a static ContactFilter2D like so protected static ContactFilter2D contact_filter; protected float self_destruct_timer; protected Vector3 direction; private float xward; protected virtual void Start () { phys.velocity = transform.right * speed * xward; self_destruct_timer = Time.time + life_time; if (!contact_filter.isFiltering) contact_filter.layerMask = Public_Const.Solid; contact_filter.useLayerMask = true; ... } The whole point of checking to see if isFilter is true is to check to see if the contact filter has already been initialized, so why won't it work?

Viewing all articles
Browse latest Browse all 75

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>