static public Vector3f GetHomePosition(uint objId) { BaseScene scn = SceneManager.Instance.GetCurScene(); if (scn == null) { return(new Vector3f()); } ObjectBase obj = scn.FindObject(objId); if (obj == null || !ObjectType.IsBattleUnit(obj.Type)) { return(new Vector3f()); } BattleUnit battleUnit = (BattleUnit)obj; return(battleUnit.GetHomePosition()); }