terrain rock rotation issue

Hi ,
I have troubles with some terrain object random rotations not working.
Basically I have two tree prototypes set up on my terrain; one is a speedtree, the other is a game object representing a rock.
I scripted the terrain generation, when instancing an object on the terrain :
i do :

inst.rotation = Random.Range(0.0f, 360.0f);

and feed it back to the terrainData.
Everything work fine with the speedtree, i.e some random rotations are applied,
but not for the rock object, which otherwise displays fine.
What am I missing ?

Hi again, I still didn’t manage to solve my issue.
In Unity documentation, I notice that :
TreeInstance.rotation is described as readOnly … which is weird , because I have no errors when I modifiy it,
Is the documentation out of date on that subject ?

hmm… As I understand it now, unity terrain is usually unable to rotate tree instances ( due to some billboard optimization , I read ) . So rotation only works with Speed trees .

this lack of rotation is a frustrating issue. I tried to resolve that by using some custom game object instancing, but as I am working on hue terrain, the number of gameobjects in the scene rapidly becomes unmanageable.

Any idea what speedtree guys did to make that work ?

Alright … I feel a little alone here lol
I will stop conversing with my self now :wink:

Sorry you couldn’t find an answer. I don’t know how to do that, either. :slight_smile: