Created new Quaternion and Point3D classes for the Location. Will require an ODB wipe!

This commit is contained in:
Obique PSWG
2015-07-23 00:07:26 -05:00
parent ac187590f5
commit c360ab65a9
8 changed files with 326 additions and 129 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package services.spawn;
import resources.Location;
import resources.Terrain;
import resources.control.Service;
import resources.objects.SWGObject;
import resources.objects.building.BuildingObject;
@@ -93,7 +92,7 @@ public class StaticService extends Service {
private SWGObject createObject(String iff, Location parentLoc, double x, double y, double z, double heading) {
Location loc = new Location(x, y, z, parentLoc.getTerrain());
loc.setHeading(heading);
loc = loc.translate(parentLoc);
loc.translateLocation(parentLoc);
return objectManager.createObject(iff, loc, true, false);
}