You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question is, is this expected? My understanding of useGraphicsBoundsfrom the docs would suggest that if useGraphicsBounds is true, then it should use the bounds of the Polygon (without needing to define a collider explicitly).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I have an
Actor
and I'm defining aPolygon
to use for its graphics. The points I use for thePolygon
make a hexagon shape.See below:
The bounds of this
Actor
don't follow the polygon's shape, but rather a rectangular bounding box around the shape (highlighted below in red):I was able to resolve this by defining a
PolygonCollider
with the same points used for thePolygon
and settinguseGraphicsBounds
tofalse
:My question is, is this expected? My understanding of
useGraphicsBounds
from the docs would suggest that ifuseGraphicsBounds
istrue
, then it should use the bounds of thePolygon
(without needing to define a collider explicitly).Thanks!
Beta Was this translation helpful? Give feedback.
All reactions