//If we have a rexObject slotted, this will notify it of any collisions and enable it to act accordingly
        private void NotifyOfCollision(Collider2D col, RexObject.Side side, RexObject.CollisionType collisionType)
        {
            if (rexObject != null)
            {
                rexObject.OnPhysicsCollision(col, side, collisionType);
            }

            RexObject otherObject = col.GetComponent <RexObject>();

            if (otherObject != null)
            {
                RexObject.Side otherSide;
                if (side == RexObject.Side.Bottom)
                {
                    otherSide = RexObject.Side.Top;
                }
                else if (side == RexObject.Side.Top)
                {
                    otherSide = RexObject.Side.Bottom;
                }
                else if (side == RexObject.Side.Left)
                {
                    otherSide = RexObject.Side.Right;
                }
                else
                {
                    otherSide = RexObject.Side.Left;
                }

                otherObject.NotifyOfCollisionWithPhysicsObject(boxCol, otherSide, collisionType);
            }
        }