diff --git a/src/main/java/cactusServer/entities/Character.java b/src/main/java/cactusServer/entities/Character.java index fa8a42c..2aa5a93 100644 --- a/src/main/java/cactusServer/entities/Character.java +++ b/src/main/java/cactusServer/entities/Character.java @@ -6,6 +6,7 @@ import java.util.Map; import org.ntlab.radishforandroidstudio.framework.model3D.Position3D; +import org.ntlab.radishforandroidstudio.framework.model3D.Quaternion3D; import cactusServer.models.Instances; import cactusServer.utils.RandomStringGenerator; @@ -16,7 +17,7 @@ private String areaURI; private String name; private Position3D position; - private Angle angle; + private Quaternion3D angle; private String modelID; private HashMap itemMap = new HashMap<>(); @@ -27,7 +28,7 @@ // JSONDecode���̌Ăяo���p } - public Character(String instanceId, String accountURI, String name, Position3D position, Angle angle, + public Character(String instanceId, String accountURI, String name, Position3D position, Quaternion3D angle, String modelID) { setAccountURI(accountURI); setName(name); @@ -49,7 +50,7 @@ return position; } - public Angle getAngle() { + public Quaternion3D getAngle() { return angle; } @@ -83,7 +84,7 @@ this.position = position; } - public void setAngle(Angle angle) { + public void setAngle(Quaternion3D angle) { this.angle = angle; } @@ -141,7 +142,7 @@ return ""; } - public void update(Position3D position, Angle angle, String modelID, String areaURI) { + public void update(Position3D position, Quaternion3D angle, String modelID, String areaURI) { setPosition(position); setAngle(angle); if (modelID != null) {