mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-14 07:55:57 +01:00
Run formatter on code
This commit is contained in:
@@ -15,9 +15,8 @@ import emu.grasscutter.scripts.data.controller.EntityController;
|
||||
import emu.grasscutter.server.event.entity.*;
|
||||
import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify;
|
||||
import it.unimi.dsi.fastutil.ints.*;
|
||||
import lombok.*;
|
||||
|
||||
import java.util.*;
|
||||
import lombok.*;
|
||||
|
||||
public abstract class GameEntity {
|
||||
@Getter private final Scene scene;
|
||||
|
||||
@@ -69,12 +69,12 @@ public abstract class BaseRoute {
|
||||
val pitch = Math.toRadians(startRot.getY());
|
||||
val yaw = Math.toRadians(startRot.getZ());
|
||||
|
||||
val cr = (float)Math.cos(roll * 0.5);
|
||||
val sr = (float)Math.sin(roll * 0.5);
|
||||
val cp = (float)Math.cos(pitch * 0.5);
|
||||
val sp = (float)Math.sin(pitch * 0.5);
|
||||
val cy = (float)Math.cos(yaw * 0.5);
|
||||
val sy = (float)Math.sin(yaw * 0.5);
|
||||
val cr = (float) Math.cos(roll * 0.5);
|
||||
val sr = (float) Math.sin(roll * 0.5);
|
||||
val cp = (float) Math.cos(pitch * 0.5);
|
||||
val sp = (float) Math.sin(pitch * 0.5);
|
||||
val cy = (float) Math.cos(yaw * 0.5);
|
||||
val sy = (float) Math.sin(yaw * 0.5);
|
||||
|
||||
result.setW(cr * cp * cy + sr * sp * sy);
|
||||
result.setX(sr * cp * cy - cr * sp * sy);
|
||||
|
||||
Reference in New Issue
Block a user