mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Container transfers shouldn't say CantSeeTarget
This commit is contained in:
@@ -947,6 +947,11 @@ public class SimulationService implements INetworkDispatch {
|
||||
teleport(obj, obj.getPosition(), newRotation, obj.getParentId());
|
||||
}
|
||||
|
||||
public void rotateToFaceTarget(SWGObject object, SWGObject target) {
|
||||
float radians = (float) (((float) Math.atan2(target.getPosition().z - object.getPosition().z, target.getPosition().x - object.getPosition().x)) - object.getRadians());
|
||||
transform(object, radians, object.getPosition());
|
||||
}
|
||||
|
||||
public void teleport(SWGObject obj, Point3D position, Quaternion orientation, long cellId) {
|
||||
|
||||
if(cellId == 0) {
|
||||
|
||||
Reference in New Issue
Block a user