#Come in here
1 messages · Page 1 of 1 (latest)
Yes, you have the clientside movement interpolation builtin, and you can hog the behavior of vehicles
(also disclaimer im a rookie in both java and bukkit)
I dont understand what you said, please elaborate
the terms I mean
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.
Personally
I would not use a LivingEntity as this comes with a few extra complications
Continue,
Oh?
Ye but boat has other issues like not being able to go up.
You can just disable its gravity
disabling its gravity would mean I cant .setVelocity
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.
Also.. what exactly is teleportation interpolation?
perfect then ill agree with you on that
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.
Okay understood
but to use it, how can I?
what is the term i need to search for online?
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.
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
Right, thats why we suggest using boats or minecarts. You can move those around and the client will make it look smooth
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
Not without RP, there is a trick for minecarts with their weird single block display thing.
Not sure about boats.
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
I have the need
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
Not everyone has time all the time, I am currently at work :D
Smile knows more about this so I can't really help.
Oh then ill be patient!