Posts: 18
Threads: 7
Joined: May 2016
Reputation:
0
I curious - how exactly direction function works?
May some one share his/her own example of code, in which used only position of me and target, and their YAWN,ROLL, and so on.
Posts: 263
Threads: 3
Joined: Dec 2012
Reputation:
18
direction() returns returns value which needs to be inserted to turn() in order to make bot face certain position. Ex:
turn(direction(item.position));
Will make bot turn towards item
But I think you might think about object's information, and not instruction. In that case I honestly can't help, since I never really used .direction, .yaw and .roll
"Deep within all of us lives an idiot, and if you let that idiot dictate your decisions your live is going to be rough."
~ Ryan Letourneau, 2k15
Posts: 18
Threads: 7
Joined: May 2016
Reputation:
0
it works perfectly! You have a good memory))