Hey, just switched to the beta last night and can’t seem to get a result from the Per Layer Modification rule, I read something on a forum post about it using the height raycast, does this mean it doesn’t work with 2D physics?
Hi
Yes, it only uses the information from the height raycast at the moment. Though I aim to extend it in the future.
Hey I’m back to this issue as I’ve had to up the complexity of my use of your asset and I really need to set tags according to a small selection of layers. Is this something I could build a rule for myself? I’ve had a look at your RulePerLayerModifications script but I’m not sure how to proceed.
The first thing that’s making me think it may not be possible for me to make is that you’re accessing “context.data.heightHits”, and there’s nothing within GridGraphScanData that offers up just regular hits unrelated to height, that I might get the layer data I would require.
Indeed.
What you can do is to run your own collision checks by using the Physics2D api in your rule.
OK cheers Aron. Sorry if this was a silly question, the simple rule I made a few months back has been my only foray into anything Burst related, and that was largely cannibalizing your rules for structure. Thanks for the tip!