MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UpdateBounds

Method UpdateBounds

Source/Engine/Physics/Colliders/BoxCollider.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void 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
174void BoxCollider::GetGeometry(CollisionShape& collision)
175{

Callers 1

AttachMethod · 0.45

Calls 3

CreateCenteredFunction · 0.85
TransformMethod · 0.45
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected