Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here:
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

Question ARFoundation Scale Not Matching Real World Dimensions

Discussion in 'AR' started by nithisha08, May 19, 2022.

  1. nithisha08


    May 19, 2022
    I have a desk that is about 72 cm tall.

    I created a cube in Blender of size 72 cm x 72 cm x 72 cm and exported it as a .obj model:

    I placed the cube (with a scale factor of 1) next to the desk. The cube is a little shorter than the height it is supposed to be. You can check the cube's size in this video:

    This is the source code I have:

    I use a modified version of the PlaceOnPlane.cs script (to prevent UI raycasting) to place the cube.

    Please check the "UI & AR scripts" folder for the modified PlaceOnPlane.cs script and the "Cube" folder for any other important info.

    I'm unsure of why the cube is not tall enough. Any help would be appreciated!

    Attached Files:

    Last edited: May 20, 2022