Trevor Baron %!s(int64=6) %!d(string=hai) anos
pai
achega
cb996159ed
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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 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.hoverColoredMaterial.emissiveColor = color.clone().add(new Color3(0.3, 0.3, 0.3));
         this._lineBoundingBox.getChildren().forEach((l) => {