29.07.2017, 02:10
Quote:
Also, when attaching the object, the parameters are not (x, y, z, rx, ry, rz), they are actually (y, z, x, y, z, x)
|
http://dev.prineside.com/en/gtasa_sa...4-kb_golfball/
What to do.
1.) Choose a central location (the center of all objects).
https://github.com/Pottus/Texture-St...dio/groups.pwn
line 446 - tsfunc GetGroupCenter(playerid, &Float:X, &Float:Y, &Float:Z)
Код:
X = (highX + lowX) / 2; Y = (highY + lowY) / 2; Z = (highZ + lowZ) / 2;
2.) Create golf at this position
3.) Calculate offsets
4.) Attach objects to golf ball
Make sure the ball has a rotation of 0,0,0 then the rotation of the objects you are attaching need no extra calculations let the client do the dirty work at this point.