Snap a whole selection together, not each object on its own

Đang mở
#99 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, unity
Lĩnh vực
design, game-dev

Hướng nghiên cứu

Start by locating Chisel's selection transform and snapping code, then trace how Unity transform tools and Chisel handles apply snapping to multiple objects. Reproduce the reported behavior with a selection whose objects have different offsets from the grid. Done means moving, rotating, and scaling with snapping preserve those offsets, with tests covering the listed snapping modes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Snapping should treat a selection of several objects as one: today each selected object is snapped on its own, so moving, rotating or scaling a selection can change where the objects are relative to each other (an object that was off the grid is pulled onto it while the others move by a different amount).

What it should do:

  • Moving: snap the selection's pivot or bounds (whichever the snapping mode uses) once, and move every object by the same delta, so their offsets to each other stay exactly as they were
  • Rotating and scaling: around the selection's pivot (center or the active object's), with the angle or scale snapped once and applied to all
  • The same for Chisel's own handles (generator bounds, brush editing of several brushes) and for Unity's transform tools where Chisel snaps them
  • Snapping against other objects (vertex and edge snapping, the grid) uses the selection's points, not each object's

Tests: a selection of objects off the grid relative to each other, moved, rotated and scaled with snapping on, keeps the offsets between them.

Ngôn ngữ chính
C#
Star
135
Fork
15
Merge trung bình
24 phút
Pull request đã merge (30 ngày)
90

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RadicalCSG/com.chisel

Tất cả issue của RadicalCSG/com.chisel

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.