Demo: Fix Particles not building
This commit is contained in:
parent
566e5b4dcf
commit
03d2742fed
|
|
@ -662,7 +662,7 @@ void SpacebattleExample::Enter(Ndk::StateMachine& fsm)
|
|||
|
||||
Ndk::NodeComponent& cannonNode = m_turret.cannonEntity->GetComponent<Ndk::NodeComponent>();
|
||||
|
||||
Nz::Boxf introAABB = introGfx.GetBoundingVolume().aabb;
|
||||
Nz::Boxf introAABB = introGfx.GetAABB();
|
||||
introNode.SetPosition(cannonNode.GetForward() * 500.f + introNode.GetLeft() * introAABB.width / 2.f + introNode.GetUp() * introAABB.height / 2.f);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue