{
// Der Panzer wurde weiter nach unten rechts (Drehwinkel im 1. oder 2. Quadranten if ((_Drehwinkel >= (MathHelper.Pi)) && (_Drehwinkel < (MathHelper.Pi * 2))){
// Map scrollen_Map.MapScrollen(_Spieler, _Map);
}
else{
_Spieler.UpdateVorwarts(_Spieler, _SpeedVor);
}
}
this makes the player moving or the map scrolling...
if the map is scrolling i substract the new x value of the world position
worldpos.X -= math.abs( _Spieler.Aktiv.SpeedVor * (float)Math.Sin(((MathHelper.Pi / 2) - _Spieler.Aktiv.Drehwinkel)));
this is working..
but i get a different value if i am at the end of the map. the value depends on the angle of rotation !!
the longer the way to the end of the map is the bigger is the difference...
can anybody give me a hint how to calculate the world position on a scrollable tilemap`
i need the exact position of the map because i want to draw world coordinate objects on it...
please help me..
if you want more code. i can post it here