Compute rotation along curve

   570   4   2
User Avatar
Member
355 posts
Joined: Nov. 2015
Offline
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()
User Avatar
Member
8579 posts
Joined: July 2007
Offline
here is a non-solver way

Attachments:
forum_rot_mod.hipnc (1.1 MB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
355 posts
Joined: Nov. 2015
Offline
tamte
here is a non-solver way
awesome 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()
User Avatar
Member
8579 posts
Joined: July 2007
Offline
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@orient
Edited by tamte - Jan. 20, 2024 00:26:36
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
355 posts
Joined: Nov. 2015
Offline
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@orient
ahh got it now, many thanks Tomas!
hou.f*ckatdskmaya().forever()
  • Quick Links