Posts: 180
Threads: 21
Joined: Jul 2012
Reputation:
0
feet? mile? meter? yard? or anything else?
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
A meter. Being said, San Andreas is only 3x3 kilometers big.
Posts: 180
Threads: 21
Joined: Jul 2012
Reputation:
0
so if my velocity is x = 0.03, y = 0.03 i'm moving total of 0.06m/s ? or how exactly does it works?
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
Assuming that your velocity is (x: -0.2) (y: 0.5) you can use the pythagorean theorem:
speed = sqrt((-0.2)^2+(0.5)^2)
speed = 0.5385
This thread really doesn't belong in this section.
Posts: 180
Threads: 21
Joined: Jul 2012
Reputation:
0
yes, but I was wondering, what's that 0.5385 ? m/s ?
actually I'm using this
fSpeed = floatsqroot(floatpower(fPos[0], 2) + floatpower(fPos[1], 2) + floatpower(fPos[2], 2)) * 100;
and it seems to be pretty much realistic as km/h
(when I'm going backwards with motorbike it displays 5km/h (1,39m/s)
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Velocity got another unit, not m/s. People say velocity*195 is about the km/h, so velocity*50 is m/s. So the velocity unit is something like m/0,02 seconds, maybe m/playertick.