сам незнал как делать миникарту - теперь стало интересно. после минуты поиска нашел
Translating from 3D to 2D coordinates is simple.
CameraProject will project a 3D coordinate (entityx, entityy and entityz of each entity) into 2D coordinates.
Get the result using ProjectedX() and ProjectedY()
You may want to "feed" CameraProject an x and z in place of an x and y (swap them around or shuffle until happy) to return 'useful' ProjectedX() and ProjectedY() coords.
So, divide these results to fit a smaller rectangle, and offset to draw where you want in your minimap.
|