How to move a entity to lower left corner

There is an entity cont in this project, and there is another entity 1P-2-7-m in it. I want to move 1P-2-7-m so that its lower left corner is exactly at the (0,0,0) position of the cont.
I used to get the halfExtents data of boundingbox to make a mobile reference, but I could not align it. Is there any way to achieve the desired effect with code

function getEntityBoundingBox(entity) {
    if(typeof entity == 'string'){
    var boundingBox = new pc.BoundingBox();
    var i, m, meshInstances = [];

    var renders = templateEntity.findComponents("render");
    for (i = 0; i < renders.length; i++) {
        var render = renders[i];
        for (m = 0; m < render.meshInstances.length; m++) {

    var models = templateEntity.findComponents("model");
    for (i = 0; i < models.length; i++) {
        var model = models[i];
        for (m = 0; m < model.meshInstances.length; m++) {

    for (i = 0; i < meshInstances.length; i++) {


    return boundingBox;

Hi @koolou,

A common approach to solve this is to use the camera screenToWorld method:

You could pass the lower left corner screen coordinates and get a point world space that is directly in front of that 2D point. If you search in the forums there may be some similar older threads on the topic.