博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HOUDINI 猪头旋转learn from cgwiki
阅读量:662 次
发布时间:2019-03-16

本文共 256 字,大约阅读时间需要 1 分钟。

在这里插入图片描述

在这里插入图片描述
vex:float angle=atan(@P.x,@P.y);//atan 反正切函数
float f =length(set(@P.x,@P.y));//所需要的只是旋转轴(即z轴)的直接半径
float amount=radians( ch(“amount”));
float twirl = f * ch (‘twirl’ ); //原点附近的点不会旋转,远处的点会旋转很多。
@P.x=sin(amount+angle+twirl)*f;
@P.y=cos(amount+angle+twirl)*f;

转载地址:http://tqsqz.baihongyu.com/

你可能感兴趣的文章