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)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 move
      positionOut - the Position object in which the new position will be saved
      velocityOut - the Vector object in which the new velocity will be saved
      Returns:
      whether this entity is on the ground