Transform
Control the device position, scale, and rotation.
Usage
json
{
"settings": {
"deviceTransform": {
"scale": 1.2,
"positionY": 0.1,
"rotationX": 15,
"rotationY": -10
}
}
}Properties
| Property | Type | Range | Default | Description |
|---|---|---|---|---|
scale | number | 0.1 - 5 | 1.0 | Device scale multiplier |
positionY | number | -2 - 2 | 0 | Vertical position offset |
rotationX | number | -180 - 180 | 0 | X-axis rotation (degrees) |
rotationY | number | -180 - 180 | 0 | Y-axis rotation (degrees) |
Examples
Larger Device
json
{
"settings": {
"deviceTransform": {
"scale": 1.5
}
}
}Tilted View
json
{
"settings": {
"deviceTransform": {
"rotationX": 15,
"rotationY": -20
}
}
}Positioned Lower
json
{
"settings": {
"deviceTransform": {
"positionY": -0.3
}
}
}Combined Transform
json
{
"settings": {
"deviceTransform": {
"scale": 1.2,
"positionY": 0.1,
"rotationX": 10,
"rotationY": -15
}
}
}