Question is off-topic or not relevant
Is there any way to access physics calculations beforehand?
I have more than just a few PointEffector2D components in my scene and I want to see what path a projectile would take in this minefield of effectors.
How would I go about it for pre-calculation of a projectile?
In case I'm not clear on this, I want to pre-calculate a path like this and show it to the player:
Answer by MelvMay · Mar 16, 2017 at 12:26 PM
From the docs:
Physics2D.GetLayerCollisionMask & Physics2D.SetLayerCollisionMask
those are for accessing the collision masks. I'm asking how to access the global collision matrix itself (the physics matrix which affects all the rigidbodies).
I wrote the 2D physics stuff so trust me when I say this is it.
The Physics2D is the global physics control. These two methods provide access to the pseudo matrix as displayed in Physics2D settings.
Each layer has a respective layer-mask which controls which layers it interacts it.
I've reworded the question and omitted that part. I'm not sure why the docs refer to a global collision matrix if it's just the same thing as the layer collision matrix.