- This topic has 11 replies, 3 voices, and was last updated 5 months, 1 week ago by kdv.
-
AuthorPosts
-
2024-06-05 at 6:41 pm #74579giegelParticipant
Hi, so I’m trying to make a Rubix Cube for my school project and while I was trying to just do rotation I realized that any rotation I did would just rotate around the first cube of the Rubix Cube which I don’t want. How can I make it so that they get rotated around the middle cube? Demonstration of the current unwanted rotation is located in the attachments.
- This topic was modified 5 months, 2 weeks ago by giegel. Reason: added attachment .... i hope
2024-06-05 at 6:42 pm #74580giegelParticipant2024-06-06 at 6:48 am #74586Yuri KovelenovStaff2024-06-06 at 2:22 pm #74594giegelParticipantThanks Yuri, your solution worked. Is there any way for me to get the location of an object’s geometry instead of its origin, even after the geometry has moved?
2024-06-07 at 5:18 am #74599Yuri KovelenovStaff2024-06-08 at 9:16 am #74639giegelParticipantSubject sort of changed from the original post but I’m not creating another one cause that’d be kinda useless and it’s for the same project anyways. But like. Why is this (attachment 2) happening??? In attachment 1 you can see I never even tried to rotate the Z axis and yet my X-rotation just completely vanished and turned into Z-rotation after rotating on the Y-axis. The reassignLocations just changes the locations of the cubes and assignSides function just assigns all the cubes to their corrosponding sides, so those have nothing to do with rotation, so that couldn’t be it either. Very strange, I hope there’s an answer that will allow me to continue without debugging for another 5 hours
Attachments:
You must be logged in to view attached files.2024-06-08 at 9:18 am #74642giegelParticipantOh and the parent sidea to cube10 block didnt change the result whatsoever i just kinda forgot to get rid of it before taking the screenshot oops
2024-06-09 at 7:23 am #74649kdvParticipantNo need to rotate all cubes Side A after parenting to Cube.010. You need to rotate only Cube.010 and all its children will also be rotated. In the second puzzle you didn’t parent Side B to Cube.014. There are six cube that will never change position (central cubes). Rotate only those six cubes with other cubes parented to them beforehand.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-06-09 at 11:03 am #74650giegelParticipantI’m somehow getting an even stranger result by doing this (the if j =/ 4 is to make sure cube10 doesnt parent to itself)
Seeing as I’m getting quite desperate now here’s the google drive for the entire project so you can see all of the puzzles yourself in case the brief puzzle attachment isnt enough (I’ve only made the sideA and sideB rotations work properly seeing as that’s enough to test stuff)
https://drive.google.com/drive/folders/1g-nWHF9V_CSJ3GzB84AwSOKHpQinCgpv?usp=sharing
Attachments:
You must be logged in to view attached files.2024-06-09 at 3:55 pm #74653kdvParticipantI suppose no budget is provided?
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-06-09 at 8:48 pm #74655giegelParticipantWell no it’s a school project
2024-06-10 at 11:11 am #74660kdvParticipantSeparate your cubes in Blender into 2 groups: main_cubes (6 central cubes) and child_cubes (the rest cubes). When you click on one of the main cubes (let’s say it’s Cube.010) you should check which of child cubes are on the same side (in case with Cube.010 they will have the same Y coordinate) and parent them to the main cube. After parenting you can rotate the main cube together with its children.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
-
AuthorPosts
- You must be logged in to reply to this topic.