//------------------------------------------------------------------------- public void setPosition(EbVector3 pos) { EbVector3 pixel_pos = CCoordinate.logic2toolkitPos(pos); Vector3 cur_pos; cur_pos.x = pixel_pos.x; cur_pos.y = pixel_pos.y; cur_pos.z = mTransform.position.z; mTransform.position = cur_pos; }
//------------------------------------------------------------------------- public void setPosition(EbVector3 pos) { EbVector3 pixel_pos = CCoordinate.logic2toolkitPos(pos); pixel_pos += CLogicUtility.getVector2ByRotateAngle(mOffsetLocation, mDirection); Vector3 cur_pos; cur_pos.x = pixel_pos.x; cur_pos.y = pixel_pos.y; cur_pos.z = mTransform.position.z; mTransform.position = cur_pos; }
public static Vector3 logic2pixel(this EbVector3 v) { EbVector3 pixel_pos = CCoordinate.logic2toolkitPos(v); return(pixel_pos.convert()); }