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. Dismiss Notice

Question How do I Centre the Pivot for an individual face in Probuilder?

Discussion in 'Editor & General Support' started by Alxander_Watson, Mar 17, 2023.

  1. Alxander_Watson

    Alxander_Watson

    Joined:
    Mar 11, 2017
    Posts:
    14
    Hello

    I'm using the ProBuilder API to generate meshes from a set of data.

    For some reason the pivot point for an individual face isn't in the centre, nor does it's orientation match the normal. The handle has a global orientation.

    Like this:

    Screenshot 2023-03-17 133625.png Screenshot 2023-03-17 133853.png

    Is there a way in code I can specify the Handle / Pivot point?

    I want to position the pivot point in the middle. With it's orientation matching the forward vector for the face.

    Like this:

    Screenshot 2023-03-17 141004.png
     
  2. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    637
    Hmm, i dont know if there is way, but i too am curious. The pivot tools (or rather lack of) are sometimes problematic. OFC, i suppose the reality is, that if you're really invested in your own model, theres a good chance, any real model agent is a far better choice then ProB.
     
    Alxander_Watson likes this.
  3. Alxander_Watson

    Alxander_Watson

    Joined:
    Mar 11, 2017
    Posts:
    14
    True. I'm just working on a prototyping tool for generating simple buildings.