Compute rotation along curve
572
4
2
2024年1月19日 22:49
Hello, in the attached file my rotation value flip flops. What's a good way to keep it consistently rotating in the right direction?
Attachments:
forum_rot.hiplc (1.1 MB)
hou.f*ckatdskmaya().forever()
tamte
Member
8586 posts
Joined: 7月 2007
Online
2024年1月19日 23:33
here is a non-solver way
Attachments:
forum_rot_mod.hipnc (1.1 MB)
Tomas Slancik FX Supervisor Method Studios, NY
2024年1月19日 23:48
tamte here is a non-solver wayawesome Tomas, Thanks! question, why does it work with axis set to X? I feel like it would need axis from cross product between velocity and some up vector.
hou.f*ckatdskmaya().forever()
tamte
Member
8586 posts
Joined: 7月 2007
Online
2024年1月20日 0:26
traileverse question, why does it work with axis set to XThink of it as local x rotation
It all depends on the order in qmultiply() so currently the local rot is rotated by the incoming global p@orient
Edited by tamte - 2024年1月20日 00:26:36
Tomas Slancik FX Supervisor Method Studios, NY
2024年1月20日 0:36
tamte traileverse question, why does it work with axis set to X Think of it as local x rotation It all depends on the order in qmultiply() so currently the local rot is rotated by the incoming global p@orientahh got it now, many thanks Tomas!
hou.f*ckatdskmaya().forever()