Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransformControls: Add min/max constraints. #29602

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

Makio64
Copy link
Contributor

@Makio64 Makio64 commented Oct 9, 2024

Description

Add min / max constraints to TransformControls, usefull for editor with limited area.

Example :

control = new TransformControls(camera, domElement)

control.minX = -10
control.maxX = 10
control.minY = 0
control.maxY = 0 // blocked in Y 
control.minZ = -90
control.maxZ = 0

@Mugen87 Mugen87 changed the title Add min/max constraints to TransformControls TransformControls: Add min/max constraints. Oct 9, 2024
@Mugen87 Mugen87 added this to the r170 milestone Oct 9, 2024
@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 9, 2024

One thing: It would be good to document these new properties here: https://threejs.org/docs/index.html#examples/en/controls/TransformControls

@Makio64
Copy link
Contributor Author

Makio64 commented Oct 9, 2024

@Mugen87 Documentation added 👍

@Mugen87 Mugen87 merged commit 279db99 into mrdoob:dev Oct 10, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants