Simulated Primitive Stabilize Rotate

   636   1   0
User Avatar
Member
19 posts
Joined: Sept. 2017
Offline
Hello all.

I want to stabilize the simulated rotation in Vellum.

The move that has now moved in the simulation.

About Transform, The packed primitives are anchored to the center with @P0,0,0).

Is there a good way to fix the rotation?

I think it could be solved if there was a way to check the rotating angle. Always subtract the angle of rotation.
I just don't know how to check the rotating angle.
Edited by Y_San - Nov. 19, 2020 19:50:43

Attachments:
rotate_stabilizer.gif (511.0 KB)

User Avatar
Member
19 posts
Joined: Sept. 2017
Offline
Solved by my boss.

In the pre-packed state, the
Get N of a certain point state that is not rotated as a vector r. Then compare it to vector oriup = {0,1,0}.
Compare vector r with vector oriup = {0,1,0}.
dihedral(r,oriup);
Get the angle in quaterniontoeuler and degrees function.
Solved the problem by putting this number in the x,y,z of the transform, respectively.
  • Quick Links