| 137 | } |
| 138 | |
| 139 | void BoxVolume::OnTransformChanged() |
| 140 | { |
| 141 | // Base |
| 142 | Actor::OnTransformChanged(); |
| 143 | |
| 144 | const auto prevBounds = _box; |
| 145 | OrientedBoundingBox::CreateCentered(Vector3::Zero, _size, _bounds); |
| 146 | _bounds.Transform(_transform); |
| 147 | _bounds.GetBoundingBox(_box); |
| 148 | BoundingSphere::FromBox(_box, _sphere); |
| 149 | OnBoundsChanged(prevBounds); |
| 150 | } |
nothing calls this directly
no test coverage detected