Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Wiggle with restrictions

New Here ,
Aug 08, 2024 Aug 08, 2024

I defined a basic wiggle code [wiggle (4,8)]  on the position of a 3d object (xyz). How do I determine that the y-axis will not pass a certain value that I set for it?

 

thanks

TOPICS
Expressions , Scripting
132
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 08, 2024 Aug 08, 2024
LATEST

Using Math.min() 

 

wgl = wiggle(4,8);
x = wgl[0];
y = Math.min(wgl[1], 540); // <=== put your max value here
z = wgl[2];

[x, y, z]

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines