Class CollisionHandler

java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.collision.CollisionHandler

public class CollisionHandler extends Object
Mock class for the CollisionHandler
  • Constructor Details

    • CollisionHandler

      public CollisionHandler(SpawnedVehicle spawnedVehicle)
      Construct a new CollisionHandler
      Parameters:
      spawnedVehicle - The vehicle to construct it for
  • Method Details

    • calculateHitbox

      public void calculateHitbox()
      Calculate the hitbox of the vehicle
    • checkCollision

      public void checkCollision()
      Check collision for the vehicle This method MUST be run sync This method will return if the speed is 0
    • getHitboxPoints

      public List<HitboxPoint> getHitboxPoints()
      The current hitbox points