MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Moved

Method Moved

Source/Objects/dynamiclightobject.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void DynamicLightObject::Moved(Object::MoveType type) {
72 Object::Moved(type);
73 if (scenegraph_ && light_id_ != -1) {
74 DynamicLight *light = scenegraph_->dynamic_light_collection.GetLightFromID(light_id_);
75 LOG_ASSERT(light != NULL);
76 if (light) {
77 light->radius = RadiusFromScale(scale_);
78 light->pos = translation_;
79 }
80 }
81}
82
83void DynamicLightObject::Dispose() {
84 Object::Dispose();

Callers

nothing calls this directly

Calls 2

RadiusFromScaleFunction · 0.85
GetLightFromIDMethod · 0.80

Tested by

no test coverage detected