Posts: 67
Threads: 23
Joined: Jan 2015
Reputation:
0
Hello as title says how could i make object move in parabola (to look realistic)?
I have starting X,Y,Z and ending X,Y,Z and i guess MoveObject velocity.
Posts: 1,208
Threads: 36
Joined: Apr 2015
You need generate points for arc 3D
PHP код:
bool:GetArcPoints3D(Float:x,Float:y,Float:z,Float:tx,Float:ty,Float:tz,Float:ry,Float:height,Float:points[][],max_points = sizeof(points));
3DTryg.inc:
https://sampforum.blast.hk/showthread.php?tid=591010
Video:
https://www.youtube.com/watch?v=lYS-ryk7n4E
Posts: 67
Threads: 23
Joined: Jan 2015
Reputation:
0
Hmm can you explain parameters?
Posts: 1,208
Threads: 36
Joined: Apr 2015
PHP код:
bool:GetArcPoints3D(Float:x,Float:y,Float:z,Float:tx,Float:ty,Float:tz,Float:ry,Float:height,Float:points[][],max_points = sizeof(points));
x,y,z - start position
tx,ty,tz - end position
ry - roll arc (default 0.0 the arch point rises upwards)
height - maximum radius of arc
Float:points[][] - arc points
first: x,y,z
last: tx,ty,tz
minimum max_points is 3