Package net.minestom.server.collision
Class CollisionUtils
java.lang.Object
net.minestom.server.collision.CollisionUtils
public class CollisionUtils
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description CollisionUtils()
-
Method Summary
Modifier and Type Method Description static boolean
handlePhysics(Entity entity, Vector deltaPosition, Position positionOut, Vector velocityOut)
Moves an entity with physics applied (ie checking against blocks)
-
Constructor Details
-
CollisionUtils
public CollisionUtils()
-
-
Method Details
-
handlePhysics
public static boolean handlePhysics(Entity entity, Vector deltaPosition, Position positionOut, Vector velocityOut)Moves an entity with physics applied (ie checking against blocks)- Parameters:
entity
- the entity to movepositionOut
- the Position object in which the new position will be savedvelocityOut
- the Vector object in which the new velocity will be saved- Returns:
- whether this entity is on the ground
-