incar /onfoot rotation

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
How do I get the onfoot and incar rotation ?
 

Wut

Well-known member
Joined
Mar 1, 2013
Messages
338
Reaction score
1
0xBA18FC - Current vehicle pointer:
+20 = [byte] Contains a pointer to the rotation/position matrix (84 bytes):
+0 = [float] X-axis Rotation (Grad)
+4 = [float] Y-axis Rotation (Grad)
+8 = [float] Z-axis Rotation (Grad)
+16 = [float] X-axis Rotation (Looking)
+20 = [float] Y-axis Rotation (Looking)
+24 = [float] Z-axis Rotation (Looking)
+48 = [float] X-axis Position
+52 = [float] Y-axis Position
+56 = [float] Z-axis Position
 

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
thanks, now how can I let my vehicle drive for a certain direction?
for example it should drive to the red marker, I can get its coordinates
but how do I calculate this stuff ..
 

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
You have to create the road simulation ...

a little array with average positions, for example a road with turns you have to get the A max and B max positions so you won't drive off the road... also you have to drive without crashing into cars so you have to make smart decisions...

this is gonna be a long process, so just don't do it... it is not worth the time

OR you can just be ignorant and set the direction towards the position you want the car to go, and then calculate the angle and set it, then the car will just go to it, surely it will crash on cars and sometimes will get stuck on buildings...
 

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
why u talk shit but dont help? :yuno: :yuno::yuno:
anyway, I found that
2d24841b4c4d2ceff6e6c29b46505802.png
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,122
Reaction score
173
why u talk shit but dont help? :yuno: :yuno::yuno:
anyway, I found that
2d24841b4c4d2ceff6e6c29b46505802.png

He dont talk shit ...
He explains you that you can't just make a Legit "Drive to Checkpoint" with just Positions, it's not possible in this form you want it.

You need to read the GTA:SA notes (etc.)
 

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
I didn't say that this checkpoint is far away...
so I don't have to care about buildings etc.

T3K's reaction was like: "oh I know what your're planning, it won't work" instead of helping with my current problem -.-
 

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
I didn't say that this checkpoint is far away...
so I don't have to care about buildings etc.

T3K's reaction was like: "oh I know what your're planning, it won't work" instead of helping with my current problem -.-

Nah man look, i didn't tell you it wont work or it isn't possible , all i did was to tell you WHAT you can do to make it work, and what the difficulties of this process can be..., ofcourse i cant provide you with source codes cuz that is a hell of work...
 

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
#done
[youtube:15iscbf7]http://www.youtube.com/watch?v=d-gAbkOvZwk[/youtube:15iscbf7]
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,122
Reaction score
173
#done
[youtube:1fwfy0w1]http://www.youtube.com/watch?v=d-gAbkOvZwk[/youtube:1fwfy0w1]
So, good then.
 
Top