| 11 | } |
| 12 | |
| 13 | void BoxVolume::SetSize(const Vector3& value) |
| 14 | { |
| 15 | if (value != _size) |
| 16 | { |
| 17 | const auto prevBounds = _box; |
| 18 | _size = value; |
| 19 | OrientedBoundingBox::CreateCentered(Vector3::Zero, _size, _bounds); |
| 20 | _bounds.Transform(_transform); |
| 21 | _bounds.GetBoundingBox(_box); |
| 22 | BoundingSphere::FromBox(_box, _sphere); |
| 23 | OnBoundsChanged(prevBounds); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | #if USE_EDITOR |
| 28 |
nothing calls this directly
no test coverage detected