ForceUpdateDependencies
Introduction
When to call Camera.ForceUpdateDepenencies
Order of calls
void CustomActivity(bool firstTimeCalled)
{
// First we perform any logic that may modify the Camera's position
// If your Camera-modifying position is being done in an Entity, and
// if that Entity is part of the Screen and you are using Glue, then the
// Entity's CustomActivity will have already been called for the frame by
// the time the Screen's CustomActivity is called. Therefore, by this point
// the only code that will modify the Camera will be in any Custom code you call
CameraPositionModifyingLogic();
SpriteManager.Camera.ForceUpdateDependencies();
LogicThatDependsOnTheCamerasPosition();
}View and Project matrices
Last updated
Was this helpful?