PiBoSo Official Forum

GP Bikes => Mods => Plugins => Topic started by: HornetMaX on May 26, 2016, 10:18:58 AM

Title: Vehicle attitude in SPluginsRaceTrackPosition_t
Post by: 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.
Title: Re: Vehicle attitude in SPluginsRaceTrackPosition_t
Post by: 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?
Title: Re: Vehicle attitude in SPluginsRaceTrackPosition_t
Post by: 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 :)

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.


Title: Re: Vehicle attitude in SPluginsRaceTrackPosition_t
Post by: HornetMaX on May 27, 2016, 06:41:06 PM
m_iCrashed could also be added to SPluginsRaceVehicleData_t.
Title: Re: Vehicle attitude in SPluginsRaceTrackPosition_t
Post by: HornetMaX on June 06, 2016, 09:19:03 PM
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.