Static Service can use 4 Quaternions instead of 2

~needed for some things
~other minor changes
This commit is contained in:
Treeku
2013-11-16 23:49:08 +00:00
parent d377ee905d
commit 138491fd0d
5 changed files with 16 additions and 13 deletions
+6 -2
View File
@@ -73,8 +73,12 @@ public class StaticService implements INetworkDispatch {
System.out.println("Loaded static objs for " + planetObj.getName());
}
// TODO make sure static objects get unloaded
public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qY, float qW) {
return spawnObject(template, planetName, cellId, x, y, z, qW, 0, qY, 0);
}
// TODO make sure static objects get unloaded
public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ) {
Planet planet = core.terrainService.getPlanetByName(planetName);
@@ -85,7 +89,7 @@ public class StaticService implements INetworkDispatch {
return null;
}
SWGObject object = core.objectService.createObject(template, 0, planet, new Point3D(x, y, z), new Quaternion(qW, 0, qY, 0));
SWGObject object = core.objectService.createObject(template, 0, planet, new Point3D(x, y, z), new Quaternion(qW, qX, qY, qZ));
if(object == null) {
System.out.println("Static object is null");