diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-29 22:29:54 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-29 23:34:39 +0800 |
commit | 877cb1cbc0bfc9428fb4b9f2cd61a7b23e6425ce (patch) | |
tree | c1141f868edff36f152dae312f55c077bf647fdb /scene | |
parent | 11e1bac768349ae821647a582282458e83b8d72b (diff) |
Improve dragging scene into 3D viewport
* When there's nothing to collide with:
* Place the new scene on XZ plane when possible.
* When the camera does not point toward the XZ plane or the
intersection is too far away, place the new scene on a plane that
is in front of the camera and parallel to the frame.
* Fixes positioning when in orthogonal view.
* Place on physical collision point or the XZ plane when possible.
* Otherwise, place it on the plane in front of the camera as if the
camera was perspective.
* Makes use of snap settings when placing the new scene.
Diffstat (limited to 'scene')
0 files changed, 0 insertions, 0 deletions