更新版本,修复镜像槽问题
This commit is contained in:
@@ -30,7 +30,7 @@ export class DbText extends Mesh
|
||||
{
|
||||
let font = FontLoaderUtil.Load();
|
||||
|
||||
let shapes: THREE.Shape[] = font.generateShapes(str, height, 0.1);
|
||||
let shapes: THREE.Shape[] = font.generateShapes(str, height);
|
||||
let geometry = new ShapeGeometry(shapes);
|
||||
|
||||
geometry.computeBoundingBox();
|
||||
@@ -38,6 +38,6 @@ export class DbText extends Mesh
|
||||
super(geometry, ColorMaterial.GetBasicMaterial(5));
|
||||
|
||||
let center = geometry.boundingBox.getCenter(new Vector3());
|
||||
this.applyMatrix(MoveMatrix(new Vector3(-center.x, 0, 0)));
|
||||
this.applyMatrix4(MoveMatrix(new Vector3(-center.x, 0, 0)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user