How to move object
#1



How to move object like this picture and check it if them fallen into the ground.
Reply
#2

Are you attempting to launch a projectile and then track it's movement? Or what?

You need to go more in depth about what your idea is for us to be able to help.
Reply
#3

You got some gravity problems because objects when are placed stay in their place until you move them scriptwisely.
It needs some hard scripting, I wouldn't suggest you to try
Reply
#4

https://en.wikipedia.org/wiki/Ballistics
Reply
#5

You can try with this include:
https://sampforum.blast.hk/showthread.php?tid=446286
Reply
#6

Can anyone give example for me
Reply
#7

Quote:
Originally Posted by MasterCodez
Посмотреть сообщение
Can anyone give example for me
Video: Soccer gamemode
Link
Reply
#8

Use this:




x0,y0 - start position
t - time (1,2,3,4,5..., you can use Float for better results)
alpha - angle for shoot
v0 - speed of shoot
g - gravitation (9.806)
x,y - current position for object in time t


cyklus for t (time) + caltulate position in time (more times it's better look, but many calculates).

I had used for golf engine on my server and works fine.
Reply
#9

Quote:
Originally Posted by ATomas
Посмотреть сообщение
Use this:




x0,y0 - start position
t - time (1,2,3,4,5..., you can use Float for better results)
alpha - angle for shoot
v0 - speed of shoot
g - gravitation (9.806)
x,y - current position for object in time t


cyklus for t (time) + caltulate position in time (more times it's better look, but many calculates).

I had used for golf engine on my server and works fine.
I can't do this with pawn samp code
Reply
#10

Quote:
Originally Posted by MasterCodez
Посмотреть сообщение
I can't do this with pawn samp code
You need to calculate or else you wont get the result that you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)