diff --git a/src/main/java/cactusServer/entities/Player.java b/src/main/java/cactusServer/entities/Player.java index 7a1566a..f2fb7d2 100644 --- a/src/main/java/cactusServer/entities/Player.java +++ b/src/main/java/cactusServer/entities/Player.java @@ -1,6 +1,6 @@ package cactusServer.entities; -import org.ntlab.radishforandroidstudio.framework.gameMain.Actor; +import org.ntlab.radishforandroidstudio.framework.gameMain.OvergroundActor; import org.ntlab.radishforandroidstudio.framework.model3D.Object3D; import org.ntlab.radishforandroidstudio.framework.model3D.Position3D; import org.ntlab.radishforandroidstudio.framework.model3D.Quaternion3D; @@ -32,11 +32,13 @@ setAnimationClassToStart(animationClassToStart); Character character = getCharacter(characterURI); readCharacterData(character); - // ����Ȋ����œ��Y�R���X�g���N�^�̍Ō��placeable�̒������s��(��ۃN���X�̎��������܂��c�����Ă��Ȃ�) - // int modelID = character.getModelID(); - // Object3D body = - // CharacterModelManager.getInstance().getCharacterModel(modelID).createObject(); - // setPlaceable(new Actor(body, )); + initPlaceable(character.getModelID()); + } + + private void initPlaceable(int modelID) { + // ����Ȋ����œ��Y�R���X�g���N�^�̍Ō��placeable�̒������s�� + Object3D body = CharacterModelManager.getInstance().getCharacterModel(modelID).createObject(); + setPlaceable(new OvergroundActor(body, null)); // ��������Instance������Universe��placeable��z�u���� String[] instanceURISplit = instanceURI.split("/"); // �c�c/instances/{instanceId} String instanceId = instanceURISplit[instanceURISplit.length - 1];