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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

The bending of the trunk ?

Discussion in 'Scripting' started by unity_3s70AKnZhJuWfw, Jan 1, 2018.

  1. unity_3s70AKnZhJuWfw

    unity_3s70AKnZhJuWfw

    Joined:
    Dec 30, 2017
    Posts:
    7
    I just finished making a couple trees in the tree creator tool in Unity. I added a wind zone and the leaves are shaking. Good! But, for some reason, the entire tree trunk is completely solid.It can be changed so that the trunk also moves with the changed
     
  2. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    As far as I know, the wind zone will never move the trunk of a tree. :)
     
  3. eXonius

    eXonius

    Joined:
    Feb 2, 2016
    Posts:
    207
    Yes, I think by default maybe the trunk is not allowed to flex very much. But as far as I know there's no setting to change how much the trunk bends.

    I have edited tree creator trees manually but it's kind of complicated. I exported them using a script that could export both vertex colors and primary and secondary UV maps to FBX, and then I opened the tree in a 3D modelling program and edited the vertex colors and the secondary UV map (I think it was both the vertex colors and the 2nd UV map that affect wind somehow) and then I exported it as a new FBX file and used that in Unity...

    If you really need to know more about how to do it manually I could try to explain more but it's doubtful that it's worth the effort.
     
  4. eXonius

    eXonius

    Joined:
    Feb 2, 2016
    Posts:
    207
    I can get some bending in the trunks of my tree creator trees (unedited) by setting the main wind power to an insanely high amount. But that's not usable of course.
     
  5. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    Ah cool.. interesting to both posts. I had never tried that ;) lol
     
    eXonius likes this.
  6. unity_3s70AKnZhJuWfw

    unity_3s70AKnZhJuWfw

    Joined:
    Dec 30, 2017
    Posts:
    7
    And could it be manipulated during the program, for example by increasing the speed of boughs and bending a tree trunk a little?