Changed Quaternion Value for CellObject Spawning

Was set 1 to the oX value when it needed to be set 1 to the oY value.
This commit is contained in:
Levarrishawk
2014-06-05 02:17:07 -04:00
parent 8042774912
commit 0247306d4a
2 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ public class StaticService implements INetworkDispatch {
for (int i = 1; i <= portal.cellCount; i++) {
long cellObjectId = core.objectService.getDOId(planetName, "object/cell/shared_cell.iff", 0, object.getObjectID(), i, x, y, z);
CellObject childCell = (CellObject) core.objectService.createObject("object/cell/shared_cell.iff", cellObjectId, core.terrainService.getPlanetByName(planetName), new Point3D(0, 0, 0), new Quaternion(1, 0, 0, 0), null, true, true);
CellObject childCell = (CellObject) core.objectService.createObject("object/cell/shared_cell.iff", cellObjectId, core.terrainService.getPlanetByName(planetName), new Point3D(0, 0, 0), new Quaternion(0, 0, 1, 0), null, true, true);
childCell.setCellNumber(i);
building.add(childCell);
}