We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Rotation around another object

Home Forums Puzzles Rotation around another object

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #74579
    giegel
    Participant

    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 3 months ago by giegel. Reason: added attachment .... i hope
    #74580
    giegel
    Participant

    Video attachment doesn’t work so I’ll attach a screenshot instead oops

    • This reply was modified 3 months ago by giegel.
    Attachments:
    You must be logged in to view attached files.
    #74586

    Hi giegel,

    you could possibly set the origin of your model in the 3D software so that it rotates around it.

    Chief 3D Verger | LinkedIn | Twitter

    #74594
    giegel
    Participant

    Thanks 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?

    #74599

    yes, you can get the object’s current location using this puzzle

    Chief 3D Verger | LinkedIn | Twitter

    #74639
    giegel
    Participant

    Subject 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.
    #74642
    giegel
    Participant

    Oh 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

    #74649
    kdv
    Participant

    No 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.

    #74650
    giegel
    Participant

    I’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.
    #74653
    kdv
    Participant

    I 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.

    #74655
    giegel
    Participant

    Well no it’s a school project

    #74660
    kdv
    Participant

    Separate 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.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.