• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 28, 2024, 12:52:55 PM

News:

World Racing Series beta14 available! :)


Vehicle attitude in SPluginsRaceTrackPosition_t

Started by HornetMaX, May 26, 2016, 10:18:58 AM

Previous topic - Next topic

HornetMaX

@PiboSo: having the vehicle attitude (Roll/Pitch/Yaw are probably enough) in the SPluginsRaceTrackPosition_t structure could be useful.

PiBoSo

Quote from: HornetMaX on May 26, 2016, 10:18:58 AM
@PiboSo: having the vehicle attitude (Roll/Pitch/Yaw are probably enough) in the SPluginsRaceTrackPosition_t structure could be useful.

Wouldn't yaw be enough for a map?
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

Quote from: PiBoSo on May 26, 2016, 11:51:33 AM
Quote from: HornetMaX on May 26, 2016, 10:18:58 AM
@PiboSo: having the vehicle attitude (Roll/Pitch/Yaw are probably enough) in the SPluginsRaceTrackPosition_t structure could be useful.

Wouldn't yaw be enough for a map?
Yep, yaw would be enough for a map, which is my current need, as you've unsurprisingly guessed :)

But I just thought that some may like tv-style widgets/overlays that show roll too, so once we've yaw and roll, we're one short for the full attitude, so ...

Thinking out loud, the roll/pitch/yaw (or even only the yaw) could go in SPluginsRaceTrackPosition_t or even in SPluginsRaceVehicleData_t, both make sense to me.
Actually the two structures/callbacks could be merged into a single one I think, just to simplify a bit the whole interface.



HornetMaX

m_iCrashed could also be added to SPluginsRaceVehicleData_t.

HornetMaX

Quote from: HornetMaX on May 26, 2016, 12:05:02 PM
Quote from: PiBoSo on May 26, 2016, 11:51:33 AM
Quote from: HornetMaX on May 26, 2016, 10:18:58 AM
@PiboSo: having the vehicle attitude (Roll/Pitch/Yaw are probably enough) in the SPluginsRaceTrackPosition_t structure could be useful.

Wouldn't yaw be enough for a map?
Yep, yaw would be enough for a map, which is my current need, as you've unsurprisingly guessed :)
Roll would also allow to have the helmet overlay rotate properly: I've just discovered it seems a very appreciated feature.