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: unity.com/legal/terms-of-service.
    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

[Updated] Measurements

Discussion in 'Assets and Asset Store' started by vrchewal, Apr 3, 2018.

  1. vrchewal

    vrchewal

    Joined:
    May 30, 2014
    Posts:
    17
    Howdy folks, Measurements is now available for your consideration, http://u3d.as/16hd.

    Measurements is a simple tool that allows you to get real time information on an object’s width, height and depth for it’s mesh, renderer and collider. You can also choose another gameobject and Measurements will tell you the distance between the two objects from their centers as well as their closest edges. All of this in any unit of measurement you like (centimeters, meters, kilometers, inches, feet, miles, yards).

    In other words, you can now easily find the size and distance information for your game objects both in editor and at runtime. You can view the information easily in editor and get real time information at runtime using the API. Read more about Measurements and the API in the Documentation.

    All feedback about the asset in it's current form is appreciated as well as what you want for the future of the tool.

    Links
    Asset Store Page: http://u3d.as/16hd
    Website Product Page: http://www.vrchewal.com/unity/measurements
    Documentation: Google Doc
    Support: http://www.vrchewal.com/contact

     
    Mark_01 likes this.
  2. vrchewal

    vrchewal

    Joined:
    May 30, 2014
    Posts:
    17
    Updated the package with a new demo to show how you can control lights based on the distance from the player.

     
    Mark_01 likes this.
  3. Mark_01

    Mark_01

    Joined:
    Mar 31, 2016
    Posts:
    557
    Thank you for making this. I hope you end up doing well with this.
    Such a good idea. Thanks man, be well.
     
    vrchewal likes this.
  4. vrchewal

    vrchewal

    Joined:
    May 30, 2014
    Posts:
    17
    Thanks! I did not get a notification of your comment or I would have responded sooner. Glad its working well for you. If you have any recommendations on features you would like to see, let me know.
     
  5. XCPU

    XCPU

    Joined:
    Nov 5, 2017
    Posts:
    145
    Excellent stuff and well written too.
    You could add the angles 'up' and 'right' on the xz and yz axis. Useful if rotating the Objects.
    The current yz, xz just seem to mirror each other, but I didn't look too close at it.
     
    vrchewal likes this.
  6. vrchewal

    vrchewal

    Joined:
    May 30, 2014
    Posts:
    17
    Thanks for the feedback
     
  7. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    851
    How do you get the distance between the two objects from their closest edges? I didn't find anything like that in your API. Can you also select the closest vertices or points in two meshes and tell the distance between them?
     
  8. vrchewal

    vrchewal

    Joined:
    May 30, 2014
    Posts:
    17
    Edge to Edge.

    From the documentation, getDistance(), returns a Vector2 with x being the center to center distance and y being the edge to edge distance. Returns the values converted to your Measurement Unit.

    Sorry for the delay. The forum did not notify me about this.
     
unityunity