public GetTransform ( ) : |
||
Résultat |
public Matrix GetTransform()
{
Matrix result;
result = Matrix.CreateTranslation(-_followedObject.Position.X, -_followedObject.Position.Y, 0f);
result *= Matrix.CreateRotationZ(-_followedObject.Rotation);
result *= Matrix.CreateTranslation(Game.ResolutionX / 2, Game.ResolutionY / 2, 0f);
return result;
}