[orx-mesh-generators] Add mesh generator demos (#314)

ector3) method
This commit is contained in:
Abe Pazos
2023-05-22 10:51:43 +00:00
committed by GitHub
parent 2b66390410
commit a56fe0cd3b
4 changed files with 159 additions and 0 deletions

View File

@@ -42,6 +42,16 @@ class TriangleMeshBuilder {
}
}
/**
* Applies a three-dimensional translation to the [transform] matrix.
* Affects meshes added afterward.
*/
fun translate(translation: Vector3) {
transform *= buildTransform {
translate(translation)
}
}
/**
* Applies a rotation over an arbitrary axis to the [transform] matrix.
* Affects meshes added afterward.