View Single Post
  #12  
Old 05-22-2016, 04:32 AM
Tyen05
Discordant
 
Join Date: Mar 2009
Location: eqbrowser.com
Posts: 309
Default

Rotation good now, mob pathing is not very good at all. Had a tough rotation problem, posting mafs incase someone else needs to do the same type of mafs.

In Eqemu:
Rotation is counter clockwise.
A full rotation is 255 (not 360).

//calculate server->client heading for client
float h = Mathf.Lerp(360,0,[heading-from-op_zonespawns]/255f);

//calculate client->server heading for server
float h = Mathf.Lerp(255,0,[player-current-heading]/360f);
__________________
Browser based EQ project
Reply With Quote