Hello,
Im trying to make an ESP on iOS, but im facing the issue that the Y axis is not drawing good...
I have check this, and tried the suggestion but it didn't work Link To Topic
Here is the code (Only useful stuff, i have deleted all the rest):
i guess here is the problem :
, but i dont see what to do
Here is an image example showing the problem :
Thanks for any advice :)
Im trying to make an ESP on iOS, but im facing the issue that the Y axis is not drawing good...
I have check this, and tried the suggestion but it didn't work Link To Topic
Here is the code (Only useful stuff, i have deleted all the rest):
C++:
Vector3 PlayerPos = GetPlayerLocation(Player);
void* Cam = GetCamera();
Vector3 PlayerPos_w2s = WorldToScreenPoint(Cam, PlayerPos);
if (PlayerPos_w2s.z < 0f) continue;
//player_t contains a Vec2 that holds the position of the position of the Box (and line should draw on there)
player_t* currPlayer = new player_t();
//the X axis is working, not the second parameter (Y axis)
currPlayer->bottomofbox = CGPointMake(PlayerPos_w2s.x - Screen.frame.size.width/2, Screen.frame.size.height - PlayerPos_w2s.y );
P->push_back(currPlayer);
if ([switches isSwitchOn : @"ESP Lines"]) {
es.esplines = true;
}
C++:
Screen.frame.size.height - PlayerPos_w2s.y
Here is an image example showing the problem :
Thanks for any advice :)