MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onRemove

Method onRemove

Engine/source/T3D/shapeBase.cpp:1125–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125void ShapeBase::onRemove()
1126{
1127 mConvexList->nukeList();
1128
1129 Parent::onRemove();
1130
1131 // Stop any running sounds on the client
1132 if (isGhost())
1133 for (S32 i = 0; i < MaxSoundThreads; i++)
1134 stopAudio(i);
1135
1136 // Accumulation and environment mapping
1137 if (isClientObject() && mShapeInstance)
1138 {
1139 if (mShapeInstance->hasAccumulation())
1140 AccumulationVolume::removeObject(this);
1141 }
1142
1143 if ( isClientObject() )
1144 {
1145 mCubeReflector.unregisterReflector();
1146 }
1147}
1148
1149
1150void ShapeBase::onSceneRemove()

Callers

nothing calls this directly

Calls 3

nukeListMethod · 0.80
hasAccumulationMethod · 0.45
unregisterReflectorMethod · 0.45

Tested by

no test coverage detected