Itoo Software Forum

Author Topic: Random Rotation  (Read 1063 times)

Dragan

  • Sr. Member
  • ****
  • Posts: 316
Random Rotation
« on: June 04, 2018, 09:41:53 AM »
Hi
I have new problem with random rotation.
1. Randomly rotate `light tubes` along Z/X axis - OK
2.  I have problem with "carrying straps". Cant make them to follow `Light tube`rotation and  force to stay vertical

any idea

Best regards
Dragan



 
« Last Edit: June 04, 2018, 09:44:22 AM by Dragan »

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1918
    • iToo
Re: Random Rotation
« Reply #1 on: June 04, 2018, 10:00:51 AM »
Easiest solution- Your lamp should be one object:


You can make it from RailClone as well and nest it in another RailClone, but it should be one object.
Rokas
iToo Software

Dragan

  • Sr. Member
  • ****
  • Posts: 316
Re: Random Rotation
« Reply #2 on: June 04, 2018, 10:13:01 AM »
Yes I got that but Rotation along X is also random eg. 5 - 25 deg , then how to keep wires always vertical?
« Last Edit: June 04, 2018, 11:37:43 AM by Dragan »

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1918
    • iToo
Re: Random Rotation
« Reply #3 on: June 04, 2018, 10:57:23 AM »
I attach my nested solution:
Rokas
iToo Software

Dragan

  • Sr. Member
  • ****
  • Posts: 316
Re: Random Rotation
« Reply #4 on: June 04, 2018, 11:36:52 AM »
Thank You again Rokas, it is great solution.

I followed everything and all is clear but one operator. Can you please clarify why  Compose operator and Null segment?


« Last Edit: June 04, 2018, 11:38:43 AM by Dragan »

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1918
    • iToo
Re: Random Rotation
« Reply #5 on: June 04, 2018, 11:44:38 AM »
Null stops Default segments from repeating. I have set it to x = 100cm
Once rotated it becomes shorter (in top projection in x direction), so it gets repeated. We kill it with null segment.
Rokas
iToo Software

Dragan

  • Sr. Member
  • ****
  • Posts: 316
Re: Random Rotation
« Reply #6 on: June 04, 2018, 12:10:29 PM »
Ok. Got it. Thank You.