mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-08 18:13:52 +00:00
feat(editor): random rotation, placed object list, quality of life
- Random Rotation checkbox: each placed object gets a random Y rotation (great for natural-looking tree/rock placement without manual tweaking) - Placed Object List: collapsible list in Object panel showing all placed objects with name and position, click to select - Both features reduce repetitive manual work when building dense zones
This commit is contained in:
parent
89312120f4
commit
5df007b7b9
3 changed files with 34 additions and 1 deletions
|
|
@ -56,6 +56,8 @@ public:
|
|||
void setPlacementRotationY(float deg) { placementRotY_ = deg; }
|
||||
float getPlacementScale() const { return placementScale_; }
|
||||
void setPlacementScale(float s) { placementScale_ = s; }
|
||||
bool getRandomRotation() const { return randomRotation_; }
|
||||
void setRandomRotation(bool v) { randomRotation_ = v; }
|
||||
|
||||
// Undo last placement
|
||||
bool canUndoPlace() const { return !undoStack_.empty(); }
|
||||
|
|
@ -78,6 +80,7 @@ private:
|
|||
uint32_t uniqueIdCounter_ = 1;
|
||||
float placementRotY_ = 0.0f;
|
||||
float placementScale_ = 1.0f;
|
||||
bool randomRotation_ = false;
|
||||
};
|
||||
|
||||
} // namespace editor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue