View cube TOP and BOTTOM turn the view as little as they can: a click kept forcing heading 0 (front edge at the bottom), so from the back-right iso view TOP spun the model round by 135°. The heading now goes to the nearest quarter turn; halfway between two (an iso view such as home) it takes the one nearer the standard plan view, so home → TOP still has the front at the bottom. The side faces are unchanged (the camera has no roll, so each has one upright view). Tests: nearest_quarter_turn for headings on, near and halfway between quarter turns, and the s39 scenario clicks TOP from the right side and keeps the right side at the bottom
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2fb3dcae6b
commit
c28e780f52
3 files changed
+57
-6
No files matched your search
@@ -23,6 +23,11 @@
|
||||
{"expect": {"camera": {"yaw_deg": 0, "pitch_deg": 45}}},
|
||||
{"click": {"handle": "cube:front-right"}},
|
||||
{"expect": {"camera": {"yaw_deg": -45, "pitch_deg": 0}}},
|
||||
{"note": "TOP turns as little as it can: from the right side it keeps the heading, so RIGHT stays at the bottom instead of the view spinning round to FRONT."},
|
||||
{"click": {"handle": "cube:top-right"}},
|
||||
{"expect": {"camera": {"yaw_deg": -90, "pitch_deg": 45}}},
|
||||
{"click": {"handle": "cube:top"}},
|
||||
{"expect": {"camera": {"yaw_deg": -90, "pitch_deg": 90}}},
|
||||
{"call": "ui.view", "params": {"view": "home"}},
|
||||
{"click": {"handle": "cube:top-back-right"}},
|
||||
{"expect": {"camera": {"yaw_deg": -135, "pitch_deg": 35.26}}},
|
||||
|
||||
Reference in new issue
Block a user