| 59 | } |
| 60 | |
| 61 | void SplineCollider::OnSplineUpdated() |
| 62 | { |
| 63 | if (!_spline || !IsActiveInHierarchy() || _spline->GetSplinePointsCount() < 2 || !CollisionData || !CollisionData->IsLoaded()) |
| 64 | { |
| 65 | _box = BoundingBox(_transform.Translation); |
| 66 | BoundingSphere::FromBox(_box, _sphere); |
| 67 | return; |
| 68 | } |
| 69 | |
| 70 | UpdateGeometry(); |
| 71 | } |
| 72 | |
| 73 | bool SplineCollider::CanAttach(RigidBody* rigidBody) const |
| 74 | { |
nothing calls this directly
no test coverage detected