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

Method OnTransformChanged

Source/Engine/UI/SpriteRender.cpp:223–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void SpriteRender::OnTransformChanged()
224{
225 // Base
226 Actor::OnTransformChanged();
227
228 const BoundingSphere localSphere(Vector3::Zero, _size.Length());
229 Matrix world;
230 GetLocalToWorldMatrix(world);
231 BoundingSphere::Transform(localSphere, world, _sphere);
232 BoundingBox::FromSphere(_sphere, _box);
233 if (_sceneRenderingKey != -1)
234 GetSceneRendering()->UpdateActor(this, _sceneRenderingKey);
235}

Callers

nothing calls this directly

Calls 3

UpdateActorMethod · 0.80
TransformClass · 0.50
LengthMethod · 0.45

Tested by

no test coverage detected