| 221 | } |
| 222 | |
| 223 | void SpriteRender::OnTransformChanged() |
| 224 | { |
| 225 | // Base |
| 226 | Actor::OnTransformChanged(); |
| 227 | |
| 228 | const BoundingSphere localSphere(Vector3::Zero, _size.Length()); |
| 229 | Matrix world; |
| 230 | GetLocalToWorldMatrix(world); |
| 231 | BoundingSphere::Transform(localSphere, world, _sphere); |
| 232 | BoundingBox::FromSphere(_sphere, _box); |
| 233 | if (_sceneRenderingKey != -1) |
| 234 | GetSceneRendering()->UpdateActor(this, _sceneRenderingKey); |
| 235 | } |
nothing calls this directly
no test coverage detected