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

Method OnTransformChanged

Source/Engine/Level/Actors/BoxVolume.cpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void BoxVolume::OnTransformChanged()
140{
141 // Base
142 Actor::OnTransformChanged();
143
144 const auto prevBounds = _box;
145 OrientedBoundingBox::CreateCentered(Vector3::Zero, _size, _bounds);
146 _bounds.Transform(_transform);
147 _bounds.GetBoundingBox(_box);
148 BoundingSphere::FromBox(_box, _sphere);
149 OnBoundsChanged(prevBounds);
150}

Callers

nothing calls this directly

Calls 3

CreateCenteredFunction · 0.85
TransformMethod · 0.45
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected