【发布时间】:2022-01-25 12:09:31
【问题描述】:
我想根据主对象的向上向量旋转子对象。 我认为这会起作用。
sub.rotation *= Quaternion.AngleAxis( 30.0f, main.transform.up );
但是,它没有用。 我该怎么做?
【问题讨论】:
-
使用
sub.rotation = Quaternion.AngleAxis(30.0f, main.transform.up) * sub.rotation;