| 359 | } |
| 360 | |
| 361 | void CharacterController::UpdateBounds() |
| 362 | { |
| 363 | _cachedScale = GetScale().GetAbsolute().MaxValue(); |
| 364 | float height, radius; |
| 365 | GetControllerSize(height, radius); |
| 366 | const Vector3 position = GetControllerPosition(); |
| 367 | const Vector3 extent(radius, height * 0.5f + radius, radius); |
| 368 | _box = BoundingBox(position - extent, position + extent); |
| 369 | BoundingSphere::FromBox(_box, _sphere); |
| 370 | } |
| 371 | |
| 372 | void CharacterController::AddMovement(const Vector3& translation, const Quaternion& rotation) |
| 373 | { |
nothing calls this directly
no test coverage detected