Пример #1
0
        public override void OnEntityTransformChanged(Transform.Component comp)
        {
            // set the appropriate dirty flags
            switch (comp)
            {
            case Transform.Component.Position:
                _isPositionDirty = true;
                break;

            case Transform.Component.Scale:
                _isPositionDirty = true;
                break;

            case Transform.Component.Rotation:
                _isRotationDirty = true;
                break;
            }

            if (_isColliderRegistered)
            {
                Physics.UpdateCollider(this);
            }
        }