Results 1 to 26 of 26

Thread: rotation, should i use matrices??

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    110

    Unhappy rotation, should i use matrices??

    Hi. I'm currently working on a program to solve the Rubik's cube. I have drawn some slight semblance of the cube in D3D. My question is in the rotation of it. I know that I have two options: rotate the camera, or rotat the world matrices. I have no clue how to rotate the world matrices, as I've tried before and because the origin lies on a corner of the cube and not in the center of it, it doesnt rotate the cube correctly. I have attached my program, and the camera rotation subroutine is in the DX module in the RenderObjects procedure. I'm wondering if I should use matrices for the roatation, and if so how would i position the pivot point to (8,8,8)? I would have to rotat the matrices in Picture1_Mousemove, but thats not a problem. ANY help would be great. Thanx
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width