diff --git a/src/main/java/cactusServer/entities/Player.java b/src/main/java/cactusServer/entities/Player.java index e04de25..18efda5 100644 --- a/src/main/java/cactusServer/entities/Player.java +++ b/src/main/java/cactusServer/entities/Player.java @@ -15,6 +15,7 @@ private String instanceID; private String characterID; private String areaURI; + private Object3D object; private Position3D position; private Quaternion3D angle; private CameraState cameraState; @@ -57,6 +58,7 @@ String[] instanceURISplit = instanceID.split("/"); // �c�c/instances/{instanceId} String instanceId = instanceURISplit[instanceURISplit.length - 1]; Instances.getInstance().getInstance(instanceId).getUniverse().place(this.getPlaceable()); + setObject(body); } public String getInstanceID() { @@ -209,4 +211,14 @@ // if (character == null) return; character.update(position, angle, areaURI); } + + @JSONHint(ignore = true) + public Object3D getObject() { + return object; + } + + public void setObject(Object3D object) { + this.object = object; + } + }