How to rotate on the horizontal way an object ?

Asked on 2024-07-27

1 search

To rotate an object horizontally, you can use the "rotate" feature in SF Symbols 6. This feature allows you to add dynamic movement to a symbol by imitating how an object behaves in the real world or by acting as a visual indicator. For example, you can rotate certain parts of a symbol, such as the fan blades of a desk fan, to create a more dynamic and realistic effect.

Here's a brief overview of how you can achieve this:

  1. Select the Layer to Rotate: Choose the specific layer of the symbol that you want to rotate.
  2. Set the Rotation Anchor Point: Use the "scan rotate" option to set a rotation anchor point. This point will be the center around which the layer rotates.
  3. Adjust the Anchor Point: If necessary, move the anchor point to the center of the layer you want to rotate. You can use the "snap to points" button to align the anchor point with the vectors of the path.
  4. Apply Rotation: Once the anchor point is set, you can apply the rotation to the selected layer.

For more detailed instructions, you can refer to the session What’s new in SF Symbols 6 (13:32).

Additionally, if you are working with 3D assets and need to rotate them, you can use RealityKit APIs. RealityKit allows you to rotate objects along any of the three axes. For example, you can apply a negative 90-degree rotation in the X-axis to adjust the orientation of an imported asset.

For more information on rotating 3D assets, you can refer to the session Optimize your 3D assets for spatial computing (05:34).

Relevant Sessions

  1. What’s new in SF Symbols 6
  2. Optimize your 3D assets for spatial computing
  3. Discover RealityKit APIs for iOS, macOS and visionOS