Development SIG Toolkit

You are not logged in. Would you like to login or register?



9/23/2019 1:43 pm  #1


[PA2] Struggling with rotating and using run_animation()

I need some help for PA2. I've been working all weekend with this and other projects and I feel like I'm making no progress. I have my code rotating my watch face and hands so it's along the z-axis, and that's about all I've managed. 

I've tried using the run_animation() function included, but it doesn't work when I try to utilize rotations. 

I set int ind to one of the children (1 and 2 are my watch hands I believe), then access that manipulator.

GsMat m becomes the matrix for that child, and then I try to utilize m.rotz(#) as a function.

When I do this, the program just crashes. I don't know if I fully understand how to utilize rotations in this animation function, but the moving up and down unfortunately is not helpful for trying to figure out rotations. 

Does anybody have any understanding that could help?

 

Board footera

 

Powered by Boardhost. Create a Free Forum