mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +01:00
Added javadoc to gravity related fields
This commit is contained in:
parent
811531da70
commit
17aa606037
@ -95,7 +95,17 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
|||||||
protected Vector velocity = new Vector(); // Movement in block per second
|
protected Vector velocity = new Vector(); // Movement in block per second
|
||||||
protected boolean hasPhysics = true;
|
protected boolean hasPhysics = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The amount of drag applied on the Y axle.
|
||||||
|
* <p>
|
||||||
|
* Unit: 1/tick
|
||||||
|
*/
|
||||||
protected double gravityDragPerTick;
|
protected double gravityDragPerTick;
|
||||||
|
/**
|
||||||
|
* Acceleration on the Y axle due to gravity
|
||||||
|
* <p>
|
||||||
|
* Unit: blocks/tick
|
||||||
|
*/
|
||||||
protected double gravityAcceleration;
|
protected double gravityAcceleration;
|
||||||
protected double gravityTerminalVelocity;
|
protected double gravityTerminalVelocity;
|
||||||
protected int gravityTickCount; // Number of tick where gravity tick was applied
|
protected int gravityTickCount; // Number of tick where gravity tick was applied
|
||||||
|
Loading…
Reference in New Issue
Block a user