| |
---|
| | OvergroundActor oga = new OvergroundActor(pochaBody, null); |
---|
| | oga.setPosition(team.findPlayerById(userId).getPlayerPosition3d()); |
---|
| | team1Players.put(userId, oga); |
---|
| | universe.place(team1Players.get(userId)); |
---|
| | System.out.println(userId + "create"); |
---|
| | } |
---|
| | if (team2Players.get(userId) == null && teamId != getRoomId()) { |
---|
| | Object3D pochaBody = ModelFactory.loadModel(getResources(), "pocha.stl").createObject(); |
---|
| | OvergroundActor oga = new OvergroundActor(pochaBody, null); |
---|
| | oga.setPosition(team.findPlayerById(userId).getPlayerPosition3d()); |
---|
| | team2Players.put(userId, new OvergroundActor(pochaBody, null)); |
---|
| | universe.place(team2Players.get(userId)); |
---|
| | System.out.println(userId + "create"); |
---|
| | } |
---|
| | } |
---|
| | } catch (Exception e) { |
---|
| | e.printStackTrace(); |
---|
| |
---|
| | |