From cf67eed72d28d13a8a83c9e8a8be20f36cb41b68 Mon Sep 17 00:00:00 2001 From: SoraxDubbing Date: Fri, 30 Aug 2024 22:05:33 +0200 Subject: [PATCH] edit TeleportDuration && InterpolationDuration --- .../java/fr/phylisiumstudio/soraxPhysic/PhysicsManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/fr/phylisiumstudio/soraxPhysic/PhysicsManager.java b/src/main/java/fr/phylisiumstudio/soraxPhysic/PhysicsManager.java index bdea887..f78e785 100644 --- a/src/main/java/fr/phylisiumstudio/soraxPhysic/PhysicsManager.java +++ b/src/main/java/fr/phylisiumstudio/soraxPhysic/PhysicsManager.java @@ -143,6 +143,8 @@ public void createsphereShape(Location location, Material material, float mass, BlockDisplay blockDisplay = bukkitWorld.spawn(location, BlockDisplay.class, display -> { display.setBlock(material.createBlockData()); display.setRotation(0, 0); + display.setInterpolationDuration(1); + display.setTeleportDuration(1); Transformation transformation = display.getTransformation(); org.joml.Vector3f translation = new org.joml.Vector3f(-radius/2, -radius/2, -radius/2);