feat(selection): selecting a contact keeps its size and the camera's view: aircraft, vessels, trains and transit vehicles keep their form and size when selected (colour only); a click follows from the camera's own distance and angle, the contact gliding to the centre over one second (FollowTarget transitionS, shared rule render/camera/followTransition, conformance camera.follow.transition)

This commit is contained in:
Sameh Khamis committed 2026-11-13 15:02:28 -08:00
1 parent e3865f462f
commit 7a61bf04a0
52 files changed
+1648 -891

No files matched your search

+11
View File
@@ -155,6 +155,17 @@ export interface FollowTarget {
viewFrom: Vec3 | ((t: number) => Vec3);
minRange?: number;
boundingRadius?: number;
/**
* Seconds of wall time the first framing takes; without it the eye is
* placed at `viewFrom` on the first frame. With it the eye stays in the
* target's frame from the first frame (riding along with the target) and
* moves from where it stood to the framing, both its offset and its view
* turning, eased (`render/camera/followTransition.js`, the one rule every
* renderer follows); `followFramed` turns true on arrival. A `viewFrom`
* along the eye's own view at its own range keeps the view and the range
* throughout, so the target slides to the centre.
*/
transitionS?: number;
}
/**