Yo yo,
Any of you got experiences with implementing correct moving system in Kal by packets?
What is the best way to calculate it correctly?
I am doing like that.
Calculating step in X axis and Y axis. Then calculate Z step like that.
Ofcourse its not complete thinking as every step must be reversed by multiplying it by -1. Calculated CoordZ must be multiplyed by 10.
Given X and Y arguments to GetHeight must be also prepared.
It does not mattter.
This system works fine, but sometimes when there are steep climbs it goes little underground then after that little over.
Like the mountain its little faster than it really is.
Hope you can help :D.
Any of you got experiences with implementing correct moving system in Kal by packets?
What is the best way to calculate it correctly?
I am doing like that.
Calculating step in X axis and Y axis. Then calculate Z step like that.
Code:
MoveZ = CurrentPlayerZ - GetHeight(CurrentPlayerX+MoveX, CurrentPlayerY+MoveY);
Given X and Y arguments to GetHeight must be also prepared.
It does not mattter.
This system works fine, but sometimes when there are steep climbs it goes little underground then after that little over.
Like the mountain its little faster than it really is.
Hope you can help :D.