openplanet-nl / vehiclestate

The VehicleState dependency plugin in Openplanet.
1 stars 4 forks source link

MP4 `Up`, `Left`, and `Dir` vectors #5

Open XertroV opened 1 year ago

XertroV commented 1 year ago

We previously thought that CTrackManiaScriptPlayer objects had enough info to reconstruct the titular vectors, but I don't think that's the case anymore. Particularly, we have AimDirection, AimYaw, and AimPitch, but we don't have any roll. There is an Upwardness float ranging between 0 and 1, but I think this destroys too much info to reconstruct the vectors.

A brief inspection with cheat engine for some known values (from AimDirection) found plenty of things that appear to be matrices, so it might be possible to reverse engineer a solution easily enough, similar to turbo and next.

For the moment however, I'm don't think it's low hanging fruit.