public Rectangle ScreenBounds(Actor self, WorldRenderer wr, float scale)
        {
            var center = self.CenterPosition;
            var offset = OffsetFunc != null?OffsetFunc() : WVec.Zero;

            return(Animation.ScreenBounds(wr, center, offset, scale));
        }
Exemple #2
0
        public Rectangle ScreenBounds(Actor self, WorldRenderer wr)
        {
            var center = self.CenterPosition;
            var offset = OffsetFunc?.Invoke() ?? WVec.Zero;

            return(Animation.ScreenBounds(wr, center, offset));
        }