Class CollisionHandler
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.collision.CollisionHandler
Mock class for the CollisionHandler
-
Constructor Summary
ConstructorsConstructorDescriptionCollisionHandler
(SpawnedVehicle spawnedVehicle) Construct a new CollisionHandler -
Method Summary
Modifier and TypeMethodDescriptionvoid
Calculate the hitbox of the vehiclevoid
Check collision for the vehicle This method MUST be run sync This method will return if the speed is 0The current hitbox points
-
Constructor Details
-
CollisionHandler
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
The current hitbox points
-