This class can be used to transform objects in 3D space by adapting a similar interaction model of DCC tools like Blender. Unlike other controls, it is not intended to transform the scene's camera.
TransformControls expects that its attached 3D object is part of the scene graph.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Sets the 3D object that should be transformed and ensures the controls UI is visible.
Sets the 3D object that should be transformed and ensures the controls UI is visible.
Attributes
Removes the current 3D object from the controls and makes the helper UI invisible.
Removes the current 3D object from the controls and makes the helper UI invisible.
Attributes
Dispose of the controls.
Dispose of the controls.
Attributes
Returns the visual representation of the controls. Add the helper to your scene to visually transform the attached 3D object.
Returns the visual representation of the controls. Add the helper to your scene to visually transform the attached 3D object.
Attributes
Returns the transformation mode.
Returns the transformation mode.
Attributes
Returns the raycaster that is used for user interaction. This object is shared between all instances of TransformControls.
Returns the raycaster that is used for user interaction. This object is shared between all instances of TransformControls.
Attributes
Resets the object's position, rotation and scale to when the current transform began.
Resets the object's position, rotation and scale to when the current transform began.
Attributes
Sets the colors of the control's gizmo.
Sets the colors of the control's gizmo.
Attributes
Sets the given transformation mode.
Sets the given transformation mode.
Attributes
Sets the rotation snap.
Sets the rotation snap.
Attributes
Sets the scale snap.
Sets the scale snap.
Attributes
Sets the size of the helper UI.
Sets the size of the helper UI.
Attributes
Sets the coordinate space in which transformations are applied.
Sets the coordinate space in which transformations are applied.
Attributes
Sets the translation snap.
Sets the translation snap.
Attributes
Inherited methods
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Concrete fields
The current transformation axis.
The current transformation axis.
Attributes
Whether dragging is currently performed or not.
Whether dragging is currently performed or not.
Attributes
The maximum allowed X position during translation.
The maximum allowed X position during translation.
Attributes
The maximum allowed Y position during translation.
The maximum allowed Y position during translation.
Attributes
The maximum allowed Z position during translation.
The maximum allowed Z position during translation.
Attributes
The minimum allowed X position during translation.
The minimum allowed X position during translation.
Attributes
The minimum allowed y position during translation.
The minimum allowed y position during translation.
Attributes
The minimum allowed z position during translation.
The minimum allowed z position during translation.
Attributes
The current transformation mode.
The current transformation mode.
Attributes
By default, 3D objects are continuously rotated. If you set this property to a numeric value (radians), you can define in which steps the 3D object should be rotated.
By default, 3D objects are continuously rotated. If you set this property to a numeric value (radians), you can define in which steps the 3D object should be rotated.
Attributes
By default, 3D objects are continuously scaled. If you set this property to a numeric value, you can define in which steps the 3D object should be scaled.
By default, 3D objects are continuously scaled. If you set this property to a numeric value, you can define in which steps the 3D object should be scaled.
Attributes
Whether the x-axis helper should be visible or not.
Whether the x-axis helper should be visible or not.
Attributes
Whether the y-axis helper should be visible or not.
Whether the y-axis helper should be visible or not.
Attributes
Whether the z-axis helper should be visible or not.
Whether the z-axis helper should be visible or not.
Attributes
The size of the helper UI (axes/planes).
The size of the helper UI (axes/planes).
Attributes
Defines in which coordinate space transformations should be performed.
Defines in which coordinate space transformations should be performed.
Attributes
By default, 3D objects are continuously translated. If you set this property to a numeric value (world units), you can define in which steps the 3D object should be translated.
By default, 3D objects are continuously translated. If you set this property to a numeric value (world units), you can define in which steps the 3D object should be translated.