| 46 | } |
| 47 | |
| 48 | void Collider::SetCenter(const Vector3& value) |
| 49 | { |
| 50 | if (value == _center) |
| 51 | return; |
| 52 | _center = value; |
| 53 | if (_staticActor) |
| 54 | PhysicsBackend::SetShapeLocalPose(_shape, _center * GetScale(), Quaternion::Identity); |
| 55 | else if (const RigidBody* rigidBody = GetAttachedRigidBody()) |
| 56 | PhysicsBackend::SetShapeLocalPose(_shape, (_localTransform.Translation + _localTransform.Orientation * _center) * rigidBody->GetScale(), _localTransform.Orientation); |
| 57 | UpdateBounds(); |
| 58 | } |
| 59 | |
| 60 | void Collider::SetContactOffset(float value) |
| 61 | { |
nothing calls this directly
no test coverage detected