Browse Source

Documentation

Raanan Weber 7 năm trước cách đây
mục cha
commit
2f0b18b55b

+ 8 - 0
src/Debug/babylon.axesViewer.ts

@@ -1,4 +1,12 @@
+/**
+ * Module Debug contains the (visual) components to debug a scene correctly
+ * @ignoreNaming
+ */
 module BABYLON.Debug {
+
+    /**
+     * The Axes viewer will show 3 axes in a specific point in space
+     */
     export class AxesViewer {
 
         private _xline = [Vector3.Zero(), Vector3.Zero()];

+ 4 - 1
src/Debug/babylon.boneAxesViewer.ts

@@ -1,6 +1,9 @@
 module BABYLON.Debug {
 
-    export class BoneAxesViewer extends Debug.AxesViewer {
+    /**
+     * The BoneAxesViewer will attach 3 axes to a specific bone of a specific mesh
+     */
+    export class BoneAxesViewer extends AxesViewer {
 
         public mesh: Nullable<Mesh>;
         public bone: Nullable<Bone>;

+ 3 - 0
src/Debug/babylon.physicsViewer.ts

@@ -1,5 +1,8 @@
 module BABYLON.Debug {
 
+    /**
+     * Used to show the physics impostor around the specific mesh.
+     */
     export class PhysicsViewer {
 
         protected _impostors: Array<Nullable<PhysicsImpostor>> = [];