TransformMesh()

Syntax

TransformMesh(#Mesh, x, y, z, ScaleX, ScaleY, ScaleZ, RotateX, RotateY, RotateZ [, SubMesh])
Description
Transform the Mesh according to the given parameters. Dynamic meshes are not supported for transform (meshes created with the #PB_Mesh_Dynamic flag).

Parameters

Mesh The mesh to transform.
x, y, z New position of the mesh, relative to its node. If the submesh parameter is specified, it specifies the new position of the submesh relative to its parent.
ScaleX Applies a scale factor on the X axis to the mesh. If the submesh parameter is specified, the scale is applied the submesh.
ScaleY Applies a scale factor on the Y axis to the mesh. If the submesh parameter is specified, the scale is applied the submesh.
ScaleZ Applies a scale factor on the Z axis to the mesh. If the submesh parameter is specified, the scale is applied the submesh.
RotateX Applies a rotation, in degree, on the X axis to the mesh. If the submesh parameter is specified, the rotation is applied to the submesh.
RotateY Applies a rotation, in degree, on the Y axis to the mesh. If the submesh parameter is specified, the rotation is applied to the submesh.
RotateZ Applies a rotation, in degree, on the Z axis to the mesh. If the submesh parameter is specified, the rotation is applied to the submesh.
SubMesh (optional) If specified, the transformation will be applied only to the submesh. The first submesh index is 0 (main mesh).

Return value

None.

See Also

CreateMesh(), LoadMesh()

Supported OS

All

<- SubMeshCount() - Mesh Index - UpdateMesh() ->