@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user