Applies a spatial transformation to splat data in-place.
Transforms position, rotation, scale, and spherical harmonics data. The transformation is applied as: scale first, then rotation, then translation.
The DataTable to transform (modified in-place).
Translation vector.
Rotation quaternion.
Uniform scale factor.
import { Vec3, Quat } from 'playcanvas';// Scale by 2x, rotate 90° around Y, translate uptransform(dataTable, new Vec3(0, 5, 0), new Quat().setFromEulerAngles(0, 90, 0), 2.0); Copy
import { Vec3, Quat } from 'playcanvas';// Scale by 2x, rotate 90° around Y, translate uptransform(dataTable, new Vec3(0, 5, 0), new Quat().setFromEulerAngles(0, 90, 0), 2.0);
Applies a spatial transformation to splat data in-place.
Transforms position, rotation, scale, and spherical harmonics data. The transformation is applied as: scale first, then rotation, then translation.