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

Method OnTransformChanged

Source/Engine/Level/Actors/Decal.cpp:151–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void Decal::OnTransformChanged()
152{
153 // Base
154 Actor::OnTransformChanged();
155
156 _bounds.Transformation = _transform;
157 _bounds.GetBoundingBox(_box);
158 BoundingSphere::FromBox(_box, _sphere);
159
160 if (_sceneRenderingKey != -1)
161 GetSceneRendering()->UpdateActor(this, _sceneRenderingKey);
162}

Callers

nothing calls this directly

Calls 2

UpdateActorMethod · 0.80
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected