refactor(component): controllable physics places its object itself

Where an object starts (where the level put it) moves into
ControllablePhysicsComponent::LoadConfigData, and where a character comes
into the world (its save, then its respawn point, the target scene or the
zone's spawn when it came from elsewhere) into LoadFromSaveData, out of
Entity::Initialize. Same placement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 16:05:04 -05:00
parent 4ea1762e0a
commit b24661710b
3 changed files with 49 additions and 33 deletions

View File

@@ -285,6 +285,10 @@ public:
const bool GetImmuneToStunUseItem() { return m_ImmuneToStunUseItemCount > 0;};
private:
// The save's physics state (LoadFromSaveData), then where the character comes into the world
void ReadSaveData(const tinyxml2::XMLDocument& doc);
void PlaceCharacter();
bool OnGetObjectReportInfo(GameMessages::GetObjectReportInfo& reportInfo);
/**