SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/07/2017, 08:28 PM   #1
NeamPojma
Big Clucker
 
Join Date: Jan 2015
Location: Serbia
Posts: 67
Reputation: 10
Default Moving object in parabola

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.
NeamPojma is offline   Reply With Quote
Old 09/07/2017, 01:22 PM   #2
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,212
Reputation: 352
Default Re: Moving object in parabola

You need generate points for arc 3D
PHP Code:
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:
http://forum.sa-mp.com/showthread.php?t=591010

Video:
https://www.youtube.com/watch?v=lYS-ryk7n4E
AbyssMorgan is offline   Reply With Quote
Old 09/07/2017, 02:14 PM   #3
NeamPojma
Big Clucker
 
Join Date: Jan 2015
Location: Serbia
Posts: 67
Reputation: 10
Default Re: Moving object in parabola

Hmm can you explain parameters?
NeamPojma is offline   Reply With Quote
Old 09/07/2017, 02:28 PM   #4
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,212
Reputation: 352
Default Re: Moving object in parabola

PHP Code:
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,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 
AbyssMorgan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving An Object arjanforgames Scripting Help 2 18/08/2013 11:54 PM
Not moving object SnG.Scot_MisCuDI Scripting Help 13 21/05/2012 04:53 AM
Bug with the moving object[++rep!] Chris_Morrison Scripting Help 18 04/03/2012 04:16 PM
Moving Object Help Please? :) KiiD Scripting Help 12 16/02/2012 03:15 PM
Help Moving Object Jack- Help Archive 1 19/12/2010 10:04 PM


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.