## How to move objects along a diagonal axis?

229 Views 2 Replies Latest reply: Nov 4, 2012 10:57 PM by Karsten Schlüter
Level 7 (29,140 points)
Currently Being Moderated
Nov 4, 2012 9:29 AM

### Beginner's Question

I'd like to accomplish the following 'project':

Here are 2 triangles, actually arranged like a square ...

now I want BOTH triangles rotate simultanously 'backwards' along the blue line.

actually, any rotation around an anchor is 180° ot 90° ...

I need 45° ...

• Level 4 (1,260 points)

This is a pretty simple case where you can use parenting.  Use the parent group to offset/overide the rotational axis for the shapes.  Here's the technique I would suggest:

-Create the two triangles (I created a square, duplicated it and then deleted one corner from the top left and  bottom right for each shape to create 2 triangles, as needed.)

-Rotate both triangles -45°

-Rotate the parent group +45°

You can now use the Y rotation for each shape to spin along the axis you've indicated.  With the setup I've explained it will be in the center.  You can then move the Anchor Point anywhere along this line if you want a different rotation point, say if you wanted to use a "corner". Use the parent group for addtional transforms with position or rotation. You could also nest the first group in another group again to preserve your offsets, that is to make sure you don't break the setup.

#### More Like This

• Retrieving data ...

#### Legend

• This solved my question - 10 points
• This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.