Jump to content

Moving object per frame.


Rat32

Recommended Posts

I will create deck gun that will can move this with arrows. moveObject is not good, because I don't know time argument.

 

Any suggestions?

1 hour ago, Mr.Loki said:

Use moveObject to move stuff even smoother than render

also that's a bad idea you will timeout your server because of the high bandwidth usage.

 

Link to comment
On 19-2-2017 at 01:45, Tasumi said:

I will create deck gun that will can move this with arrows. moveObject is not good, because I don't know time argument.

 

Any suggestions?

 

moveObject is smoother then just on client render, just calculate the distance to the point it has to move to and use some simple maths to gain the time of the object till it moves to that location

For example

s = distance (m)

v = velocity (km/h)

t = time (seconds)

s = v * t so basically Distance = Velocity * time

In order to get the time use Distance / Velocity (Speed of how fast you want it to move) = Time

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...