#Come in here

1 messages · Page 1 of 1 (latest)

sudden orbit
#

.

#

Okay so

#

Why is using an actual vehicle better?

weak glacier
#

Yes, you have the clientside movement interpolation builtin, and you can hog the behavior of vehicles

sudden orbit
#

(also disclaimer im a rookie in both java and bukkit)

sudden orbit
#

the terms I mean

brittle eagle
#

If you're making like a car, I would suggest horse lul.

#

It would be less "laggy" for the client.
If you calculate the motion serverside it will lag, but since vehicles are controlled by the client there is 0 lag.

sudden orbit
#

Personally

weak glacier
#

I would not use a LivingEntity as this comes with a few extra complications

sudden orbit
#

I thought armor stand would be the lightest

#

on ram

brittle eagle
sudden orbit
#

^ i can just give it a velocity upwards no?

#

that would work

weak glacier
sudden orbit
#

disabling its gravity would mean I cant .setVelocity

weak glacier
#

Also: RAM shouldnt matter to you. I would always trade in a lot of RAM for a little bit of CPU performance.
Thats what i do wherever i can.

sudden orbit
#

Also.. what exactly is teleportation interpolation?

sudden orbit
weak glacier
# sudden orbit Also.. what exactly is teleportation interpolation?

Since the server only runs on 20 TPS, and the framerate of clients is usually a multiple of that, clients might
find behavior to look laggy on their end. Thats why interpolation exists. They split up the movement over several
frames to display behaviour smoothly. So even if you teleport your entity 20 times a second, a client with 120 fps and
interpolation capabilities, will display 120 movement steps in this one second instead of 20.

sudden orbit
#

Okay understood

#

but to use it, how can I?

#

what is the term i need to search for online?

weak glacier
#

Its tricky. Generally everything that can be interpolated, is already hard coded in the client.
Display entities are the only exception to that. For example the movement of entities and vehicles is automatically
interpolated by the client. Otherwise the game would look laggy as hell.

sudden orbit
#

I agree i understand how a movement being updated every tick is like fixed at 20 fps

#

so its gotta look shit

#

While interpolation would spread it over the number of frames every second on client right

#

But continuing, how will I achieve this and in what manner should I apply the interpolation?

#

What would boat mount on, or what would boat mount

weak glacier
#

Right, thats why we suggest using boats or minecarts. You can move those around and the client will make it look smooth

sudden orbit
#

Where would the player be sitting on, will it ride the boat like how you would in game

#

Another question

#

can boats or minecarts be made invisible

brittle eagle
#

Not without RP, there is a trick for minecarts with their weird single block display thing.
Not sure about boats.

sudden orbit
#

Understood ill try that then

#

But also

#

wait let me process the information

#

How exactly will I be moving the boat?

#

if its my vehicle?

#

.setVelocity?

#

Since im doing same as .setVelocity on using an armor stand too, and its interpolating as per standard

sudden orbit
#

to calculate motion server side

#

since my gravity mechanics will be entirely different

#

Considering ill be setting up a relation with Lift, Thrust, Drag and Weight

#

Are you there?

#

I apologize if I was rude or not listening

#

My basics could be considered not clear

brittle eagle
#

Not everyone has time all the time, I am currently at work :D
Smile knows more about this so I can't really help.

sudden orbit
#

Oh then ill be patient!