Page 1 of 1

[CTmPlayer] Current Position and Speed

Posted: 01 Mar 2013, 18:36
by m4rcel
I think I already mentioned this during the Alpha phase, but I am unsure if there was an anwser to this. SO I want to ask again:

Is it possible to get the current position and other properties like speed, acceleration and maybe the direction, in which the player is looking/driving? These kind of values would be very nice to create more advanced modes for TM environments, for example to have some kind of kollision detection or so.

As values like position and view direction are available in CSmPlayer, why not adding them to CTmPlayer, too?

Re: [CTmPlayer] Current Position and Speed

Posted: 01 Mar 2013, 18:56
by w1lla
in CTmModeEvent

There you can find the Distance droven by a car and the actual speed.

To achieve this you should read this:

http://forum.maniaplanet.com/viewtopic. ... 80#p137672

Its basic but works for Distance aswell. Problem is it only checks on CP passthrough or Finishline.

with kind regards,

w1lla

Re: [CTmPlayer] Current Position and Speed

Posted: 02 Mar 2013, 13:08
by m4rcel
Having this data only on events like Checkpoints, is not enough in my case. I rather need this data constantly to do some calculations during the whole race.

Anyway, thanks for your anwser ;)