Skip to content

activation/deactivation of controls #6813

@rfm1201

Description

@rfm1201

In my program I’m using more than one control depending of what the user wants. So I need to activate/deactivate controls for the events to be managed by the right control.

Most of the controls have an "enabled" property. Some of them let the caller manipulate it directly, some manage it internally. BUT some of them don’t have this kind of property (TransformControls is the one I had to modify).

Would it be possible to "standardize” the activation/deactivation of controls?

I know that controls are not part of the three.js core, but I think they are used by most programs build on three.js. To my opinion some kind of standardization could help, and I think that activation/deactivation is one of those feature.

The other point is that when somebody modifies a control, it's better done when done by someone that really understands how the control works. Adding "enabled" to TransformControls was not a big challenge but I miss one or two things in my first attempt (and had to do it again when TransformControls was modified).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions