Cuberite Forum
Entity Gravity? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Entity Gravity? (/thread-1804.html)



Entity Gravity? - DiamondToaster - 02-25-2015

So, I was messing around with the SetGravity() function in the Lua API, and I noticed that the mobs and entities fall at 9.8m/s^2. This is real world gravity, but this article shows that Vanilla Minecraft's gravity is about 22.6m/s^2 (http://blog.benw.xyz/2014/01/minecraft-physics-steve-in-drag/ ), so should the default server gravity be changed accordingly?


RE: Entity Gravity? - tonibm19 - 02-25-2015

Its better to use real gravity. Then you can calculate its fallen pos/speed with x=x0 + v0 *t -4.9 * t^2 and v = -9.8t

Nah, its just I have probably not passed an exam about that.

Anyway, why not keep it like this, MCServer doesnt need to be exact to vanilla.


RE: Entity Gravity? - xoft - 02-25-2015

We should probably implement something similar to vanilla, after all, people expect their contraptions to work and this is one thing that they could use for timing etc.

Thanks for the good read, I guess that's all we need to implement it (besides finding the someone to actually, you know, code it Smile )