12.04.2018, 15:57
Quote:
Thanks for the reply dude
Anyway i don't really understand what you sayin' with my sh!t english But i tried both example that you said Код:
a = atan2(vy, vx) - 90.0 Код:
DumpsterData[dumpsterid][dumpsterR] = (-atan2(X, Y) + 45.0); but if the rotation of the object has not equals to 0.0; soo could you give me more advice to finish this? i want to 'clone' all of theese dumpsters with server sided objects. i'm very bad in maths so im look like this now |
You need 2 points from which you can calculate an angle (in the direction from Point A to Point B), but this condition isn't met as each Dumpster just has one set of coordinates without any info about its direction.
There is no way to tell in which direction it should be facing just from its coords. In this case you'll have to rotate them manually.