Hi,
ich hoffe das reicht dir, ansonsten kannst du natürlich auch warten, bis ich meinen Code veröffentliche.
Gruß
ich hoffe das reicht dir, ansonsten kannst du natürlich auch warten, bis ich meinen Code veröffentliche.
Code:
ScannedRobotEvent E
dXPos = Bot.getX() + Math.sin( Math.toRadians(dAbsBearingDeg) ) * E.getDistance();
dYPos =Bot.getY() + Math.cos( Math.toRadians(dAbsBearingDeg) ) * E.getDistance();
public double GetNextX( long lWhen )
{
return dXPos + Math.sin( Math.toRadians(dHeading) ) * dVelocity * lWhen;
}
public double GetNextY( long lWhen )
{
return dYPos + Math.cos( Math.toRadians(dHeading) ) * dVelocity * lWhen;
}
Gruß