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

Wiggle with restrictions

New Here ,
Aug 08, 2024 Aug 08, 2024

Copy link to clipboard

Copied

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

Views

59

Translate

Translate

Report

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
Enthusiast ,
Aug 08, 2024 Aug 08, 2024

Copy link to clipboard

Copied

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]

 

 

Votes

Translate

Translate

Report

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