CollisionFilter and CompositeLayer #8488
Unanswered
just-website
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Created an example in which I combine three IconLayer and TextLayer layers into one Composite.
It looks like the CollisionFilter is only calculated for the last layer, which is returned from the renderLayers method as result array. This is especially noticeable if you set a text layer as the last layer, it seems that
collisionTestProps: sizeScale
is no longer taken into account for it. This looks strange if all layers have the same defaulProps. Why does textLayer behave differently?How to correctly use getCollisionPriority and collisionGroup parameters?
For two layers with the same data, I want to see only the top layer, and not overlay each other. I think I'm doing something wrong and I'm not seeing results.
Beta Was this translation helpful? Give feedback.
All reactions