Adobe Inc.
Snapping objects into alignment in three-dimensional space
Last updated:
Abstract:
Operations of a method include accessing a first object and a second object positioned in virtual three-dimensional (3D) space. The operations further include moving the first object from a first position to a second position, responsive to a user request. The operations include computing a ray extending from a reference point of the first object, in the second position, in a direction of a first dimension. The operations include computing a pixel distance in screen space between a first plane of a first bounding box of the first object and a second plane of a second bounding box of the second object along the ray. Additionally, the method includes snapping the first object into alignment by moving the first object an additional distance to position a face of the first bounding box into the second plane, based on the pixel distance being no greater than an error value.
Utility
18 Nov 2020
21 Dec 2021