| 163 | } |
| 164 | |
| 165 | void BoxCollider::UpdateBounds() |
| 166 | { |
| 167 | // Cache bounds |
| 168 | OrientedBoundingBox::CreateCentered(_center, _size, _bounds); |
| 169 | _bounds.Transform(_transform); |
| 170 | _bounds.GetBoundingBox(_box); |
| 171 | BoundingSphere::FromBox(_box, _sphere); |
| 172 | } |
| 173 | |
| 174 | void BoxCollider::GetGeometry(CollisionShape& collision) |
| 175 | { |
no test coverage detected