Skip to content

Commit

Permalink
Fixed missing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jlu18 committed Mar 1, 2022
1 parent 56a77a2 commit cd8787b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/utils/AFramePhysics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import AFRAME from "aframe";
const THREE = AFRAME.THREE;

/**
* @summary Added a pushable effect to the MYR entities
*/
AFRAME.registerComponent("force-pushable", {
schema: {
force: {
Expand All @@ -26,7 +29,9 @@ AFRAME.registerComponent("force-pushable", {
}
});

//change the material of a-grid to MeshBasicMaterial
/**
* @summary This sets the side where the shadow should be cast on entity
*/
AFRAME.registerComponent("gridmaterial",{
schema:{
default:""
Expand Down Expand Up @@ -69,7 +74,10 @@ AFRAME.registerComponent("shadowcustomsetting", {
},
});

//This calculate and sets the rotation of the entity based on 2 points
/**
* @summary Calculate and sets the rotation of the entity based on 2 points
* This is use for the light indicator that has the property of lighttarget (directional and spot light)
*/
AFRAME.registerComponent("indicatorrotation",{
schema:{
position:{
Expand Down

0 comments on commit cd8787b

Please sign in to comment.