Compute rotation along curve
570
4
2
Jan. 19, 2024 10:49 p.m.
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
8579 posts
Joined: July 2007
Offline
Jan. 19, 2024 11:33 p.m.
here is a non-solver way
Attachments:
forum_rot_mod.hipnc (1.1 MB)
Tomas Slancik FX Supervisor Method Studios, NY
Jan. 19, 2024 11:48 p.m.
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
8579 posts
Joined: July 2007
Offline
Jan. 20, 2024 12:26 a.m.
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 - Jan. 20, 2024 00:26:36
Tomas Slancik FX Supervisor Method Studios, NY
Jan. 20, 2024 12:36 a.m.
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()