Trevor Baron 6 年之前
父节点
当前提交
cb996159ed
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/Gizmos/boundingBoxGizmo.ts

+ 5 - 1
src/Gizmos/boundingBoxGizmo.ts

@@ -95,7 +95,11 @@ export class BoundingBoxGizmo extends Gizmo {
     private coloredMaterial: StandardMaterial;
     private coloredMaterial: StandardMaterial;
     private hoverColoredMaterial: StandardMaterial;
     private hoverColoredMaterial: StandardMaterial;
 
 
-    setColor(color: Color3) {
+    /**
+     * Sets the color of the bounding box gizmo
+     * @param color the color to set
+     */
+    public setColor(color: Color3) {
         this.coloredMaterial.emissiveColor = color;
         this.coloredMaterial.emissiveColor = color;
         this.hoverColoredMaterial.emissiveColor = color.clone().add(new Color3(0.3, 0.3, 0.3));
         this.hoverColoredMaterial.emissiveColor = color.clone().add(new Color3(0.3, 0.3, 0.3));
         this._lineBoundingBox.getChildren().forEach((l) => {
         this._lineBoundingBox.getChildren().forEach((l) => {