### Author Topic: Positioning objects on a surface problem  (Read 2573 times)

#### Richard Birket

• Full Member
• Posts: 152
##### Positioning objects on a surface problem
« on: December 21, 2011, 11:57:21 AM »
I hope I am missing something, but I have 6 poly models of leaves that I am custom positioning around a surface. They are set to automatically rotate.  The problem is that some of the leaves pass through the surface object. I am sure there should be a 'bounding box' method of placement to prevent this from happening, but I can't find it.

Kind Regards,
Rich

#### iToo

• Hero Member
• Posts: 3623
##### Re: Positioning objects on a surface problem
« Reply #1 on: December 21, 2011, 12:18:28 PM »

Forest uses the pivot point of the Custom Object for placing the items, so if you align the pivot with the bottom of the leaves, they should not pass through the surface (assuming they are set to rotate along the Z axis).

Carlos Quintero
iToo Software

#### Richard Birket

• Full Member
• Posts: 152
##### Re: Positioning objects on a surface problem
« Reply #2 on: December 21, 2011, 06:30:27 PM »
I wanted them to rotate about the x and y axes also so they don't all look the same. Is this not possible?
Kind Regards,
Rich

#### iToo

• Hero Member
• Posts: 3623
##### Re: Positioning objects on a surface problem
« Reply #3 on: December 21, 2011, 08:33:23 PM »

Yes, the items can be rotated in any axis, but you must limit the range to avoid collisions with the surface. It's not possible to compute automatically the range, because that would need a complete physics system.

I suggest that you take a leaf object and rotate it on the viewport along the X/Y axes, to see visually what is the maximum angle before collisioning with the XY plane. Then, use these values in Forest. The values will depend of the geometry and pivot position.

Carlos Quintero
iToo Software

#### Richard Birket

• Full Member
• Posts: 152
##### Re: Positioning objects on a surface problem
« Reply #4 on: December 22, 2011, 11:38:13 AM »