Package net.minestom.server.collision
Class SweepResult
java.lang.Object
net.minestom.server.collision.SweepResult
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSweepResult
(double res, double normalX, double normalY, double normalZ, Shape collidedShape, Point collidedPos) Store the result of a movement operation -
Method Summary
-
Field Details
-
NO_COLLISION
-
-
Constructor Details
-
SweepResult
public SweepResult(double res, double normalX, double normalY, double normalZ, Shape collidedShape, Point collidedPos) Store the result of a movement operation- Parameters:
res
- Percentage of move completednormalX
- -1 if intersected on left, 1 if intersected on rightnormalY
- -1 if intersected on bottom, 1 if intersected on topnormalZ
- -1 if intersected on front, 1 if intersected on back
-