MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / onTransformChanged

Method onTransformChanged

src/logic/VisualController.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void VisualController::onTransformChanged()
26{
27 Controller::onTransformChanged();
28
29 // Set all created visuals to the same transform as our entity
30 for (Handle::EntityHandle e : m_VisualEntities)
31 m_World.getEntity<Components::PositionComponent>(e).m_WorldMatrix = getEntityTransform();
32}
33
34void VisualController::exportPart(json& j)
35{

Callers 2

updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected