Quote from: Rox75009 on August 04, 2022, 10:07:04 AMHowever, I would love to get the Map of the MaxHUD plug-in to work with my code. I could I retrieve it (and play with the parameters) ? What kind file is it ?Hi there, not sure what you mean exactly but I suppose you want to have something similar to the HUDMap widget (i.e. a 2d or 3d representation of the track).
(I am not so great at coding but with some explanation, I could get it I think)
Many thanks!
GPB passes to the plugin the centerline of the track. The format is relatively simple: a bunch of SPluginsTrackSegment_t, each of them being either straight segment or an arc (part of a circle).
Relevant code in the output plugin example from PiBoSo:
Code Select
typedef struct
{
int m_iType; /* 0 = straight; 1 = curve */
float m_fLength; /* meters */
float m_fRadius; /* curve radius in meters. < 0 for left curves; 0 for straights */
float m_fAngle; /* start angle in degrees. 0 = north */
float m_afStart[2]; /* start position in meters */
float m_fHeight; /* start height in meters */
} SPluginsTrackSegment_t;
/*
_pRaceData is a pointer to a float array with the longitudinal position of the start / finish line, splits and speedtrap.
This function is optional
*/
__declspec(dllexport) void TrackCenterline(int _iNumSegments,SPluginsTrackSegment_t *_pasSegment,void *_pRaceData)
{
}